-
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linter) improve
prefer-string-starts-ends-with
rule (#3176)
basically: `^#/i.test(hex)` is the same as `/^#/.test(hex)` so, in this case the `i` flag does nothing and we can safely ignore it inspired by https://x.com/the_moisrex/status/1787444601571221892 --- This could potentially lead a new `oxc` rule called `no_useless_case_insensitive_regex_flag` that reports if you have a regex with the `i` flag with no ascii alphabetic chars.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
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