Skip to content

Commit

Permalink
fixup! fix(eslint-plugin): [class-methods-use-this] Allow to detect a…
Browse files Browse the repository at this point in the history
… problematic case for private/protected members if `ignoreClassesThatImplementAnInterface` is `true`
  • Loading branch information
tetsuharuohzeki committed Nov 17, 2023
1 parent 316b170 commit 7390468
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-plugin/src/rules/class-methods-use-this.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ export default createRule<Options, MessageIds>({
oneOf: [
{
type: 'boolean',
description: 'Ignore all classes that implement an interface',
},
{
type: 'string',
enum: ['public-fields'],
description:
'Ignore only the public fields of classes that implement an interface',
},
],
description:
Expand Down

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

0 comments on commit 7390468

Please sign in to comment.