📎 Implement nursery/useConsistentMemberAccessibility
- explicit-member-accessibility
#3271
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Description
Implement explicit-member-accessibility
Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
Important
We will skip most of the options implemented by ESLint
I propose to implement a single option
accessibility
taking a value among:explicit
: requires an accessibility modifier for every member that allows that (a safe fix will addpublic
).none
: forbid all accessibility modifiers (public
,protecetd
,public
).noPublic
: forbid the use ofpublic
(a safe fix will remove it).In contrast to the ESLint rule, I think we should use
noPublic
as the default because the omission ofpublic
1 is more common than its explicit use.Note that we should always ignore parameter properties in constructors.
The text was updated successfully, but these errors were encountered: