diff options
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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" diff --git a/src/rules/default.json b/src/rules/default.json index f6d347b..5a92435 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -388,6 +388,13 @@ "error", "never" ], + "prefer-const": [ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": false + } + ], "prefer-reflect": [ "off" ], |