Skip to content
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

[naming-convention] Support negative matches for filter option #1512

Closed
bradzacher opened this issue Jan 24, 2020 · 0 comments · Fixed by #1517
Closed

[naming-convention] Support negative matches for filter option #1512

bradzacher opened this issue Jan 24, 2020 · 0 comments · Fixed by #1517
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@bradzacher
Copy link
Member

Spinning off of #1482

Regexes are great at matching things, but they're pretty terrible for not matching things.
At the last minute before merging the rule, I added the custom field, which has the format custom: { regex: string, match: boolean }.
But I didn't think go back and add this to the filter option.

Should give the same treatment to the filter option so it's easy to include or exclude identifiers.

@bradzacher bradzacher added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin enhancement: plugin rule option New rule option for an existing eslint-plugin rule labels Jan 24, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant