From e839c5d69a6bbe025ac79afa666994ca35aa533f Mon Sep 17 00:00:00 2001 From: Xymorot Date: Sun, 23 Jun 2019 23:19:11 +0200 Subject: [PATCH] add no-magic-numbers rule to tslint and eslint --- .eslintrc.json | 3 ++- tslint.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3afa231..3563858 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,6 +10,7 @@ "ecmaVersion": 2017 }, "rules": { - "no-shadow": "error" + "no-shadow": "error", + "no-magic-numbers": "error" } } diff --git a/tslint.json b/tslint.json index afa1e32..7301352 100644 --- a/tslint.json +++ b/tslint.json @@ -14,7 +14,8 @@ "await-promise": true, "no-inferrable-types": true, "prefer-for-of": true, - "no-empty": [true, "allow-empty-functions"] + "no-empty": [true, "allow-empty-functions"], + "no-magic-numbers": true }, "jsRules": true }