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