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

New Rule Proposal: no-private-fields-in-in #74

Open
ota-meshi opened this issue Jul 20, 2021 · 0 comments · May be fixed by #81
Open

New Rule Proposal: no-private-fields-in-in #74

ota-meshi opened this issue Jul 20, 2021 · 0 comments · May be fixed by #81

Comments

@ota-meshi
Copy link
Contributor

Please describe what the rule should do:

Disallows #x in obj syntax added in ES2022.

https://github.com/tc39/proposal-private-fields-in-in

Provide 2-3 code examples that this rule will warn about:

class C {
  #brand;

  static isC(obj) {
    return #brand in obj; // <-
  }
}
@ota-meshi ota-meshi linked a pull request Sep 14, 2021 that will close this issue
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 a pull request may close this issue.

1 participant