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 }