aboutsummaryrefslogtreecommitdiff
path: root/src/rules/default.json
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:24:29 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:24:29 +0300
commitd1085d5b1a84f7534b3df524a7dc43e4a2a61c9b (patch)
treea8a4da31667465df4fcaed69973c92ea8d155009 /src/rules/default.json
parent77985e07d0ba6a8274454c1a1d59a7a521d18177 (diff)
downloadeslint-config-d1085d5b1a84f7534b3df524a7dc43e4a2a61c9b.tar.xz
eslint-config-d1085d5b1a84f7534b3df524a7dc43e4a2a61c9b.zip
feat(eslint): Rule "no-useless-computed-key"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/default.json')
-rw-r--r--src/rules/default.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rules/default.json b/src/rules/default.json
index bc3b692..7c2e48c 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -362,6 +362,12 @@
"vars": "all"
}
],
+ "no-useless-computed-key": [
+ "error",
+ {
+ "enforceForClassMembers": true
+ }
+ ],
"no-useless-constructor": [
"error"
],