Skip to content

📎 Implement nursery/useConsistentMemberAccessibility - explicit-member-accessibility #3271

Description

@Conaclos

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 add public).
  • none: forbid all accessibility modifiers (public, protecetd, public).
  • noPublic: forbid the use of public (a safe fix will remove it).

In contrast to the ESLint rule, I think we should use noPublic as the default because the omission of public1 is more common than its explicit use.

Note that we should always ignore parameter properties in constructors.

Metadata

Metadata

Assignees

Labels

A-LinterArea: linterL-JavaScriptLanguage: JavaScript and super languagesS-Help-wantedStatus: you're familiar with the code base and want to help the project

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions