aboutsummaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:59:20 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:59:20 +0300
commitfc524a46098d1cfb4ca3991f41ea0b2f8334e404 (patch)
tree2d14a92866f8d1721256b4c542bdb55d6ebc6790 /src/rules
parent1155911243d14469ce2f920003aa6ade0a85cbfd (diff)
downloadeslint-config-fc524a46098d1cfb4ca3991f41ea0b2f8334e404.tar.xz
eslint-config-fc524a46098d1cfb4ca3991f41ea0b2f8334e404.zip
feat(eslint): Rule "no-magic-numbers"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/default.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rules/default.json b/src/rules/default.json
index 7df9925..9b6b2dc 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -206,6 +206,14 @@
"no-extra-semi": [
"error"
],
+ "no-magic-numbers": [
+ "warn",
+ {
+ "detectObjects": false,
+ "enforceConst": true,
+ "ignoreArrayIndexes": false
+ }
+ ],
"no-multi-spaces": [
"error",
{