Check statically known computed names in no-dupe-class-members #12808
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
breaking
This change is backwards-incompatible
rule
Relates to ESLint's core rules
Projects
What rule do you want to change?
no-dupe-class-members
Does this change cause the rule to produce more or fewer warnings?
more
How will the change be implemented? (New option, new default behavior, etc.)?
new default behavior
Maybe as a breaking change in
v7.0.0
?Please provide some example code that this change will affect:
What does the rule currently do for this code?
no errors
What will the rule do after it's changed?
2 errors, for names
"a"
and"b"
.The proposal is to check all class members for which
astUtils.getStaticPropertyName
returns a string value and thus align this rule to the similarno-dupe-keys
rule:Demo Link
Are you willing to submit a pull request to implement this change?
Yes.
The text was updated successfully, but these errors were encountered: