Skip to content

Commit

Permalink
feat(typescript): add @typescript-eslint/class-methods-use-this rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Sep 1, 2023
1 parent 019cbe1 commit 233a645
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"ybiq": "^16.2.1"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": ">=6.1.0",
"@typescript-eslint/eslint-plugin": ">=6.2.0",
"eslint": ">=8.46.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 2 additions & 0 deletions rules/plugins/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ module.exports = {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/class-literal-property-style": "off",
"class-methods-use-this": "off",
"@typescript-eslint/class-methods-use-this": "warn", // eslint-disable-line sort-keys
"@typescript-eslint/consistent-generic-constructors": "warn",
"@typescript-eslint/consistent-indexed-object-style": "warn",
"@typescript-eslint/consistent-type-assertions": "off",
Expand Down

0 comments on commit 233a645

Please sign in to comment.