Commit a8675f4
feat(linter): add eslint/class-methods-use-this rule (#12977)
Adds the
[`class-methods-use-this`](https://eslint.org/docs/latest/rules/class-methods-use-this)
rule.
Added a bunch of tests from the eslint repo and the typescript eslint
repo, without the ones that rely on particular option configurations.
Works towards #479
---------
Co-authored-by: Cameron Clark <cameron.clark@hey.com>1 parent ca4a081 commit a8675f4
File tree
4 files changed
+1079
-0
lines changed- crates/oxc_linter/src
- generated
- rules/eslint
- snapshots
4 files changed
+1079
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| 640 | + | |
639 | 641 | | |
640 | 642 | | |
641 | 643 | | |
| |||
0 commit comments