Bug: no-underscore-dangle
not working as expected in ES2022 public/private class fields
#15810
Closed
1 task done
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
new syntax
This issue is related to new syntax that has reached stage 4
repro:yes
rule
Relates to ESLint's core rules
Projects
Environment
Node version: 16.13
npm version: 8.1.2
Local ESLint version: 8.14.0
Global ESLint version: -
Operating System: macOS m1 pro
What parser are you using?
Default (Espree)
What did you do?
Configuration
What did you expect to happen?
The rule
no-underscore-dangle
should also apply to the new ES2022 public/private class fields.The implementation was marked done #14857 , however, it still does not work, as no errors are shown in public/private class fields.
What actually happened?
Errors were raised only for
methods
in the class (and properties in the constructor), but not for methods or properties defined viapublic/private class fields
syntax.Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: