diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rules/typescript/default.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 67d519e..283cdb8 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -46,6 +46,17 @@ "ignoreRestArgs": false } ], + "@typescript-eslint/no-magic-numbers": [ + "warn", + { + "detectObjects": false, + "enforceConst": true, + "ignoreArrayIndexes": false, + "ignoreEnums": true, + "ignoreNumericLiteralTypes": true, + "ignoreReadonlyClassProperties": true + } + ], "@typescript-eslint/quotes": [ "error", "double", @@ -75,6 +86,9 @@ "indent": [ "off" ], + "no-magic-numbers": [ + "off" + ], "quotes": [ "off" ], |