-
-
Notifications
You must be signed in to change notification settings - Fork 15
refactor: use defaultOptions in no-unnormalized-keys
#140
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
refactor: use defaultOptions in no-unnormalized-keys
#140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
would it be a breaking change? the doc says, "This plugin requires ESLint v9.6.0 or higher", but |
|
Hmm, I'm not sure about this 🤔 But since the Lines 99 to 107 in 76cd647
Or maybe just updating the documentation would be the best approach here? |
|
IMHO, the safest approach is to avoid using |
Good catch! Well, since this plugin is technically incompatible with eslint < 9.15 since v0.10.0 when we added the |
Yes, at a minimum the docs should be updated. |
Prerequisites checklist
What is the purpose of this pull request?
In this PR, I've updated the
no-unnormlized-keysrule to usedefaultOptions.Previously, the rule used custom logic to extract its default value.
According to MDN and
@types/node, the default value forString.prototype.normalizeis"NFC", so I've set it as the default.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#parameters
What changes did you make? (Give an overview)
I've updated the
no-unnormlized-keysrule to usedefaultOptions.Related Issues
N/A
Is there anything you'd like reviewers to focus on?
N/A