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
id-length exceptions pattern #13094
Comments
this doesn't need much refactoring. |
This seems like a reasonable enhancement to me 👍 |
I agree with it 👍 and marked as accepted. |
|
@yeonjuan We still need a champion for this proposal. Would you like to champion it? |
@kaicataldo sorry for mislabeling, I'm willing to champion this : ) |
@eslint/eslint-team Looks like we just need one more 👍 from a team member. |
hi, It seems to have stopped last month. |
@sodaMelon sure, please feel free to pick up! |
* Add #13099 to continue * Delete unnecessary 'parserOptions' * Add invalid test with an identifier that doesn't match configured pattern * Add valid test with multiple exception patterns * Add a function that extracted 'return' below * Docs: Add "exceptionPatterns" to "id-length" rule * Add a function that extracted 'return' below Docs: Add "exceptionPatterns" to "id-length" rule * Update : modify wrong example * Update: all RegExp instance create in "create(context)" * Update: more simpler by refactoring some codes * Update docs/rules/id-length.md Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * Update: modify the function name * Update: Add a valid test with multiple patterns where the first doesn't match. Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
What rule do you want to change?
Property
exceptions
for ruleid-length
Does this change cause the rule to produce more or fewer warnings?
Fewer
How will the change be implemented? (New option, new default behavior, etc.)?
Property value support
Please provide some example code that this change will affect:
What does the rule currently do for this code?
It makes the exception only for identifiers named exactly
^BEFORE_
What will the rule do after it's changed?
It will make the exception for all identifiers matching the pattern. In the example above, it will make the exception for every identifier starting with
BEFORE
Are you willing to submit a pull request to implement this change?
Not for the moment
The text was updated successfully, but these errors were encountered: