aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:48:36 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:48:36 +0300
commitdce1b1ae89e9a59ab437df750bd5f3997c53f750 (patch)
treed7dcdec2061b233eccea39ce94188224262938d3
parentb8aef365abdd63501d65cc025115a3af71fbe303 (diff)
downloadeslint-config-dce1b1ae89e9a59ab437df750bd5f3997c53f750.tar.xz
eslint-config-dce1b1ae89e9a59ab437df750bd5f3997c53f750.zip
feat(eslint): Rule "no-self-compare"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 40120f6..2e95c71 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -179,7 +179,7 @@
- [X] "no-return-await"
- [X] "no-script-url"
- [ ] "no-self-assign"
-- [ ] "no-self-compare"
+- [X] "no-self-compare"
- [ ] "no-sequences"
- [ ] "no-setter-return"
- [ ] "no-shadow"
diff --git a/src/rules/default.json b/src/rules/default.json
index 9913249..a9c99db 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -314,6 +314,9 @@
"no-script-url": [
"error"
],
+ "no-self-compare": [
+ "error"
+ ],
"no-spaced-func": [
"off"
],