feat(eslint): Rule "no-magic-numbers"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
1155911243
commit
fc524a4609
@ -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"
|
||||
|
@ -206,6 +206,14 @@
|
||||
"no-extra-semi": [
|
||||
"error"
|
||||
],
|
||||
"no-magic-numbers": [
|
||||
"warn",
|
||||
{
|
||||
"detectObjects": false,
|
||||
"enforceConst": true,
|
||||
"ignoreArrayIndexes": false
|
||||
}
|
||||
],
|
||||
"no-multi-spaces": [
|
||||
"error",
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user