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
Change no-duplicate-case
rule to comparing tokens
#13485
Comments
@ota-meshi thanks for the issue! I'll champion this. The only downside is that this increases time complexity (currently used Only, I'm not sure should we make this change in a minor version, or rather wait for the next major version. |
There are 3 upvotes from team members, so marking as accepted.
PR is welcome now! (I think we should discuss if this should be a semver-minor or semver-major change, but that shouldn't affect the PR) |
@mdjermanovic Thank you for letting me know! I will work on PR after today's work. |
…gnore-default-values * upstream/master: (66 commits) Sponsors: Sync README with website Sponsors: Sync README with website Sponsors: Sync README with website Sponsors: Sync README with website Sponsors: Sync README with website Chore: remove leche (fixes eslint#13287) (eslint#13533) Sponsors: Sync README with website Sponsors: Sync README with website 7.6.0 Build: changelog update for 7.6.0 Update: require `meta` for fixable rules in RuleTester (refs eslint#13349) (eslint#13489) Docs: fix broken links in developer guide (eslint#13518) Fix: Do not output `undefined` as line and column when it's unavailable (eslint#13519) Sponsors: Sync README with website Sponsors: Sync README with website Fix: Update the chatroom link to go directly to help channel (eslint#13536) Sponsors: Sync README with website Update: Change no-duplicate-case to comparing tokens (fixes eslint#13485) (eslint#13494) Docs: add ECMAScript 2020 to README (eslint#13510) 7.5.0 ...
What rule do you want to change?
no-duplicate-case
Does this change cause the rule to produce more or fewer warnings?
Produce more warnings.
How will the change be implemented? (New option, new default behavior, etc.)?
Makes the process of detecting duplicates compare by token, like
no-dupe-else-if
.Please provide some example code that this change will affect:
What does the rule currently do for this code?
The comparison is text based.
What will the rule do after it's changed?
a.b
,a. b
anda./**/b
are reported as duplicates.Are you willing to submit a pull request to implement this change?
If there is consensus, I will submit a pull request.
refs #13466 (comment)
The text was updated successfully, but these errors were encountered: