From b2282f2cd154924314abeb11103d907e6f999a1e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:01:45 +0400 Subject: feat(eslint): Rule "class-methods-use-this" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3