[explicit-member-accessibility] "explicit" option suggestions #4647
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The method
bark()
is missing the accessibility modified.eslint --fix
should addpublic
.Actual Result
The method
bark()
is missing the accessibility modified.eslint --fix
cannot automatically fix this.Additional Info
The docs https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md#attributes mention this rule is fixable. This only works for
{ accessibility: 'no-public' }
but not for{ accessibility: 'explicit' }
(which is the default).Versions
@typescript-eslint/eslint-plugin
5.14.0
@typescript-eslint/parser
5.14.0
TypeScript
4.6.2
ESLint
8.10.0
node
16.14.0
The text was updated successfully, but these errors were encountered: