feat(typescript): Rule "no-magic-numbers"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
fc524a4609
commit
e4814ec7a5
@ -364,7 +364,7 @@
|
|||||||
- [ ] "no-for-in-array"
|
- [ ] "no-for-in-array"
|
||||||
- [ ] "no-implied-eval"
|
- [ ] "no-implied-eval"
|
||||||
- [ ] "no-inferrable-types"
|
- [ ] "no-inferrable-types"
|
||||||
- [ ] "no-magic-numbers"
|
- [X] "no-magic-numbers"
|
||||||
- [ ] "no-misused-new"
|
- [ ] "no-misused-new"
|
||||||
- [ ] "no-misused-promises"
|
- [ ] "no-misused-promises"
|
||||||
- [ ] "no-namespace"
|
- [ ] "no-namespace"
|
||||||
|
@ -46,6 +46,17 @@
|
|||||||
"ignoreRestArgs": false
|
"ignoreRestArgs": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"@typescript-eslint/no-magic-numbers": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"detectObjects": false,
|
||||||
|
"enforceConst": true,
|
||||||
|
"ignoreArrayIndexes": false,
|
||||||
|
"ignoreEnums": true,
|
||||||
|
"ignoreNumericLiteralTypes": true,
|
||||||
|
"ignoreReadonlyClassProperties": true
|
||||||
|
}
|
||||||
|
],
|
||||||
"@typescript-eslint/quotes": [
|
"@typescript-eslint/quotes": [
|
||||||
"error",
|
"error",
|
||||||
"double",
|
"double",
|
||||||
@ -75,6 +86,9 @@
|
|||||||
"indent": [
|
"indent": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
|
"no-magic-numbers": [
|
||||||
|
"off"
|
||||||
|
],
|
||||||
"quotes": [
|
"quotes": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user