From 6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 16:16:37 +0400 Subject: fix(eslint): Rule "no-magic-numbers" Signed-off-by: Valentin Popov --- src/rules/javascript/default.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rules') diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json index bc42d8f..ac2fccd 100644 --- a/src/rules/javascript/default.json +++ b/src/rules/javascript/default.json @@ -288,6 +288,10 @@ { "detectObjects": false, "enforceConst": true, + "ignore": [ + 0, + 1 + ], "ignoreArrayIndexes": false } ], -- cgit v1.2.3