Skip to content

Add support for v flag to regexp/no-useless-character-class rule#593

Merged
RunDevelopment merged 10 commits into
masterfrom
no-useless-character-class
Sep 21, 2023
Merged

Add support for v flag to regexp/no-useless-character-class rule#593
RunDevelopment merged 10 commits into
masterfrom
no-useless-character-class

Conversation

@ota-meshi
Copy link
Copy Markdown
Owner

related to #545

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 10, 2023

🦋 Changeset detected

Latest commit: 699695e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-regexp Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ota-meshi ota-meshi marked this pull request as draft September 10, 2023 06:58
@ota-meshi ota-meshi changed the title Improve regexp/no-useless-character-class rule auto-fix to supports nested character classes Add support for v flag to regexp/no-useless-character-class rule Sep 10, 2023
@ota-meshi ota-meshi marked this pull request as ready for review September 10, 2023 07:06
Comment thread tests/lib/rules/no-useless-character-class.ts Outdated
@ota-meshi ota-meshi marked this pull request as draft September 10, 2023 07:37
@ota-meshi ota-meshi marked this pull request as ready for review September 10, 2023 11:56
@RunDevelopment
Copy link
Copy Markdown
Collaborator

This currently doesn't handle inlining empty character classes correctly. E.g. /[[]^]/v and /[&[]&]/v.

@ota-meshi
Copy link
Copy Markdown
Owner Author

Thank you for checking this PR. I fixed bugs 😃

@RunDevelopment RunDevelopment merged commit b0f6396 into master Sep 21, 2023
@RunDevelopment RunDevelopment deleted the no-useless-character-class branch September 21, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants