summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index be8c3b6..2e278b3 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -210,7 +210,7 @@
- [ ] "no-useless-backreference"
- [ ] "no-useless-call"
- [ ] "no-useless-catch"
-- [ ] "no-useless-computed-key"
+- [X] "no-useless-computed-key"
- [ ] "no-useless-concat"
- [X] "no-useless-constructor"
- [ ] "no-useless-escape"
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"
],