aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:54:49 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:54:49 +0300
commitdf848834f582a1cba6e275d4dd408eeb95f5ef26 (patch)
treefb833c53bee83a10268414519ab9d8701d7883b1 /src
parent6feb5456418b15b25cdd6408a43c9af6f8c58fa9 (diff)
downloadeslint-config-df848834f582a1cba6e275d4dd408eeb95f5ef26.tar.xz
eslint-config-df848834f582a1cba6e275d4dd408eeb95f5ef26.zip
feat(eslint): Rule "prefer-const"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/rules/default.json7
1 files changed, 7 insertions, 0 deletions
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"
],