aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 15:17:32 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 15:17:32 +0300
commitd1c4968ba4b0950ba8e2bffa1db0b1ed07ac4e82 (patch)
treee04766ac04d11443e928391cdb5103d1b5addd1b /src
parent6d6086298ac6d64e9c924eb6eadb4cbb87eb7be5 (diff)
downloadeslint-config-d1c4968ba4b0950ba8e2bffa1db0b1ed07ac4e82.tar.xz
eslint-config-d1c4968ba4b0950ba8e2bffa1db0b1ed07ac4e82.zip
fix(typescript): Rule "no-magic-numbers"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/rules/typescript/default.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 868cf26..70e31ce 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -60,6 +60,10 @@
{
"detectObjects": false,
"enforceConst": true,
+ "ignore": [
+ 0,
+ 1
+ ],
"ignoreArrayIndexes": false,
"ignoreEnums": true,
"ignoreNumericLiteralTypes": true,