From e4814ec7a54eb944bad99650bed770c40a00ddee Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 00:03:58 +0400 Subject: feat(typescript): Rule "no-magic-numbers" Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/rules') 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" ], -- cgit v1.2.3