From 1b176ac10e062653908e9238fd9a0cc44cf2ec86 Mon Sep 17 00:00:00 2001 From: Alex Bandtock Date: Tue, 25 Oct 2016 15:31:57 +0100 Subject: [PATCH] Added exception for 0 in the no magic numbers clause in .eslint file. --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 5b12ce6..0681fa0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,7 +33,7 @@ "no-unexpected-multiline": 2, "no-unreachable": 2, "no-empty-function": 2, - "no-magic-numbers": 1, + "no-magic-numbers": [1, { "ignore": [0] }], "no-multi-str": 1, "no-self-assign": 2, "yoda": 2,