[naming-convention] Precedence of property selector has been changed #2860
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Because typescript-eslint 4.8.2 doesn't report error for this, I expect typescript-eslint 4.9.x also doesn't report error.
Actual Result
The following error is reported.
Previously
property
had a higher precedence thanmemberLike
, but it is now a meta selector and the precedence seems to be lower (ref: #2807).I know it works as expected if I use
"selector": ["classProperty", "objectLiteralProperty", "typeProperty"]
instead of"selector": "property"
, but I report this issue because it feels like a breaking change in a minor upgrade for me.Additional Info
Versions
@typescript-eslint/eslint-plugin
4.9.1
@typescript-eslint/parser
4.9.1
TypeScript
4.1.2
ESLint
7.15.0
node
14.6.0
The text was updated successfully, but these errors were encountered: