summaryrefslogtreecommitdiff
path: root/src/rules/javascript/default.json
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 15:16:37 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 15:16:37 +0300
commit6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5 (patch)
treee2f05ba9c72d81d88d8e26edb8a761848aa4da0a /src/rules/javascript/default.json
parentb19f79913de6b650ba3a90470831db1f63c4f099 (diff)
downloadeslint-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/default.json')
-rw-r--r--src/rules/javascript/default.json4
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
}
],