feat(eslint): Rule "no-magic-numbers"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 23:59:20 +04:00
parent 1155911243
commit fc524a4609
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -138,7 +138,7 @@
- [ ] "no-lone-blocks"
- [ ] "no-lonely-if"
- [ ] "no-loop-func"
- [ ] "no-magic-numbers"
- [X] "no-magic-numbers"
- [ ] "no-misleading-character-class"
- [ ] "no-mixed-operators"
- [ ] "no-mixed-requires"

View File

@ -206,6 +206,14 @@
"no-extra-semi": [
"error"
],
"no-magic-numbers": [
"warn",
{
"detectObjects": false,
"enforceConst": true,
"ignoreArrayIndexes": false
}
],
"no-multi-spaces": [
"error",
{