aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:01:45 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:01:45 +0300
commitb2282f2cd154924314abeb11103d907e6f999a1e (patch)
tree933f549bbad2c223ca08830e86b017e974593388
parentd1751228f2f845d59255ae17a78573f91fa6cd6e (diff)
downloadeslint-config-b2282f2cd154924314abeb11103d907e6f999a1e.tar.xz
eslint-config-b2282f2cd154924314abeb11103d907e6f999a1e.zip
feat(eslint): Rule "class-methods-use-this"
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 3688d7e..7be4e6b 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -16,7 +16,7 @@
- [ ] "callback-return"
- [ ] "camelcase"
- [ ] "capitalized-comments"
-- [ ] "class-methods-use-this"
+- [X] "class-methods-use-this"
- [X] "comma-dangle"
- [X] "comma-spacing"
- [ ] "comma-style"
diff --git a/src/rules/default.json b/src/rules/default.json
index 52611ee..b8c2521 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -17,6 +17,9 @@
"allowSingleLine": false
}
],
+ "class-methods-use-this": [
+ "warn"
+ ],
"comma-dangle": [
"error",
"always-multiline"