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

A bug in explicit-member-accessibility when a member start with "#" #2339

Closed
HypnosNova opened this issue Jul 29, 2020 · 1 comment
Closed
Labels
package: eslint-plugin-tslint Issues related to @typescript-eslint/eslint-plugin-tslint wontfix This will not be worked on working as intended Issues that are closed as they are working as intended

Comments

@HypnosNova
Copy link

Repro

{
    rules: {
        '@typescript-eslint/explicit-member-accessibility': 'error'
    }
};
class A {
    #aaa() {}
}

Expected Result
no error

Actual Result
shows that I musr add public or private before the method aaa()

The # means the member is private so we can't use public or private in this case.

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin-tslint 3.1.0
@typescript-eslint/eslint-plugin 3.7.1
@typescript-eslint/parser 3.7.1
TypeScript 3.9.6
ESLint 7.5.0
node 12.16.1
npm 6.13.4
@HypnosNova HypnosNova added package: eslint-plugin-tslint Issues related to @typescript-eslint/eslint-plugin-tslint triage Waiting for maintainers to take a look labels Jul 29, 2020
@bradzacher
Copy link
Member

We do not fully support private class members yet.
#1436

@bradzacher bradzacher added wontfix This will not be worked on working as intended Issues that are closed as they are working as intended and removed triage Waiting for maintainers to take a look labels Aug 17, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: eslint-plugin-tslint Issues related to @typescript-eslint/eslint-plugin-tslint wontfix This will not be worked on working as intended Issues that are closed as they are working as intended
Projects
None yet
Development

No branches or pull requests

2 participants