feat(eslint): Rule "prefer-const"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
6feb545641
commit
df848834f5
@ -233,7 +233,7 @@
|
||||
- [ ] "padded-blocks"
|
||||
- [ ] "padding-line-between-statements"
|
||||
- [ ] "prefer-arrow-callback"
|
||||
- [ ] "prefer-const"
|
||||
- [X] "prefer-const"
|
||||
- [ ] "prefer-destructuring"
|
||||
- [ ] "prefer-exponentiation-operator"
|
||||
- [ ] "prefer-named-capture-group"
|
||||
|
@ -388,6 +388,13 @@
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"prefer-const": [
|
||||
"error",
|
||||
{
|
||||
"destructuring": "any",
|
||||
"ignoreReadBeforeAssign": false
|
||||
}
|
||||
],
|
||||
"prefer-reflect": [
|
||||
"off"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user