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-lone-blocks"
|
||||||
- [ ] "no-lonely-if"
|
- [ ] "no-lonely-if"
|
||||||
- [ ] "no-loop-func"
|
- [ ] "no-loop-func"
|
||||||
- [ ] "no-magic-numbers"
|
- [X] "no-magic-numbers"
|
||||||
- [ ] "no-misleading-character-class"
|
- [ ] "no-misleading-character-class"
|
||||||
- [ ] "no-mixed-operators"
|
- [ ] "no-mixed-operators"
|
||||||
- [ ] "no-mixed-requires"
|
- [ ] "no-mixed-requires"
|
||||||
|
@ -206,6 +206,14 @@
|
|||||||
"no-extra-semi": [
|
"no-extra-semi": [
|
||||||
"error"
|
"error"
|
||||||
],
|
],
|
||||||
|
"no-magic-numbers": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"detectObjects": false,
|
||||||
|
"enforceConst": true,
|
||||||
|
"ignoreArrayIndexes": false
|
||||||
|
}
|
||||||
|
],
|
||||||
"no-multi-spaces": [
|
"no-multi-spaces": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user