diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 15:16:37 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 15:16:37 +0300 |
commit | 6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5 (patch) | |
tree | e2f05ba9c72d81d88d8e26edb8a761848aa4da0a /src/rules/javascript | |
parent | b19f79913de6b650ba3a90470831db1f63c4f099 (diff) | |
download | eslint-config-6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5.tar.xz eslint-config-6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5.zip |
fix(eslint): Rule "no-magic-numbers"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/javascript')
-rw-r--r-- | src/rules/javascript/default.json | 4 |
1 files changed, 4 insertions, 0 deletions
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 } ], |