Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ESLint configuration
Browse files Browse the repository at this point in the history
Update the ESLint configuration for the regexp plugin specifically given
changes from 1.15.0 to 2.0.0

All new rules are enabled except `regexp/require-unicode-sets-regexp` to
promote the best as well as consistent regular expressions. The rule
`regexp/require-unicode-sets-regexp` isn't enabled because the `v` flag
it enforces is incompatible with older Node.js versions supported by
this project.

Other than that, the major version bump did not appear to break anything
for the usage of the plugin within this project.
ericcornelissen committed Oct 20, 2023
1 parent c499477 commit 589b30e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -315,6 +315,8 @@ rules:
- error
regexp/control-character-escape:
- error
regexp/grapheme-string-literal:
- error
regexp/hexadecimal-escape:
- error
- never # prefer unicode escape
@@ -352,6 +354,8 @@ rules:
- error
regexp/no-empty-lookarounds-assertion:
- error
regexp/no-empty-string-literal:
- error
regexp/no-escape-backspace:
- error
regexp/no-extra-lookaround-assertions:
@@ -421,6 +425,10 @@ rules:
- error
regexp/no-useless-range:
- error
regexp/no-useless-set-operand:
- error
regexp/no-useless-string-literal:
- error
regexp/no-useless-two-nums-quantifier:
- error
regexp/no-zero-quantifier:
@@ -466,6 +474,8 @@ rules:
regexp/prefer-result-array-groups:
- error
- strictTypes: true
regexp/prefer-set-operation:
- error
regexp/prefer-star-quantifier:
- error
regexp/prefer-unicode-codepoint-escapes:
@@ -474,6 +484,10 @@ rules:
- error
regexp/require-unicode-regexp:
- error
regexp/require-unicode-sets-regexp:
- off
regexp/simplify-set-operations:
- error
regexp/sort-alternatives:
- error
regexp/sort-character-class-elements:

0 comments on commit 589b30e

Please sign in to comment.