add no-magic-numbers rule to tslint and eslint

This commit is contained in:
Xymorot 2019-06-23 23:19:11 +02:00
parent 19dc7bd11e
commit e839c5d69a
2 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@
"ecmaVersion": 2017
},
"rules": {
"no-shadow": "error"
"no-shadow": "error",
"no-magic-numbers": "error"
}
}

View File

@ -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
}