Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Unicode flag suggestion in no-misleading-character-class (#…
…15867) * refactor: Simplify kinds tracking with a Set * feat: Add fixer for missing regex unicode flag * test: Update tests * refactor: Change fix to suggestion * Revert "test: Update tests" * Address review comments * Add tests * Update lib/rules/no-misleading-character-class.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> * add suggestions:null assertions * update docs * add more tests * fix edge cases when inserting flags argument * validate pattern for regex literals * validate pattern for regex constructor calls Co-authored-by: Mathias Rasmussen <mathiasvr@gmail.com>
- Loading branch information
1 parent
c686e4c
commit cab0c22
Showing
3 changed files
with
472 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.