Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable explicit member accessibility for constructors #158

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

jattasNI
Copy link
Collaborator

Rationale

Resolves #100. Constructors may now be marked public, private, or have no accessibility modifier. Previously they had to be marked public or private.

Implementation

Set overrides: { constructors: 'off' } in the TS rule configuration.

Testing

Added a constructor to the TypeScript test and verified the rule previously errored if it didn't have a modifier but now allows this.

@jattasNI
Copy link
Collaborator Author

@mure since you filed the original issue and the changes in this PR are trivial, I'm gonna assume you're ok with it and complete the PR today.

@rajsite rajsite merged commit bd1f97e into main Sep 26, 2024
2 checks passed
@rajsite rajsite deleted the constructor-explicit-member-accessibility branch September 26, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore constructors in @typescript-eslint/explicit-member-accessibility
4 participants