Skip to content

Commit

Permalink
update eslint-plugin-regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 17, 2023
1 parent c2d027d commit 0ebbbd8
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 52 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions scripts/bundle-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ const base = {
'regexp/confusing-quantifier': ERROR,
// enforce consistent escaping of control characters
'regexp/control-character-escape': ERROR,
// enforce single grapheme in string literal
'regexp/grapheme-string-literal': ERROR,
// enforce consistent usage of hexadecimal escape
'regexp/hexadecimal-escape': [ERROR, NEVER],
// enforce into your favorite case
Expand Down Expand Up @@ -712,6 +714,8 @@ const base = {
'regexp/no-empty-group': ERROR,
// disallow empty lookahead assertion or empty lookbehind assertion
'regexp/no-empty-lookarounds-assertion': ERROR,
// reports empty string literals in character classes
'regexp/no-empty-string-literal': ERROR,
// disallow escape backspace `([\b])`
'regexp/no-escape-backspace': ERROR,
// disallow unnecessary nested lookaround assertions
Expand Down Expand Up @@ -768,6 +772,10 @@ const base = {
'regexp/no-useless-quantifier': ERROR,
// disallow unnecessary range of characters by using a hyphen
'regexp/no-useless-range': ERROR,
// reports any unnecessary set operands
'regexp/no-useless-set-operand': ERROR,
// reports the string alternatives of a single character in `\q{...}`, it can be placed outside `\q{...}`
'regexp/no-useless-string-literal': ERROR,
// disallow unnecessary `{n,m}`` quantifier
'regexp/no-useless-two-nums-quantifier': ERROR,
// disallow quantifiers with a maximum of zero
Expand Down Expand Up @@ -812,6 +820,8 @@ const base = {
'regexp/prefer-unicode-codepoint-escapes': ERROR,
// enforce using `\w`
'regexp/prefer-w': ERROR,
// aims to optimize patterns by simplifying set operations in character classes (with v flag)
'regexp/simplify-set-operations': ERROR,
// sort alternatives if order doesn't matter
'regexp/sort-alternatives': ERROR,
// enforces elements order in character class
Expand Down
77 changes: 35 additions & 42 deletions tests/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-qunit": "^8.0.1",
"eslint-plugin-redos": "^4.5.0-beta.4",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-regexp": "^2.0.0",
"eslint-plugin-sonarjs": "~0.21.0",
"eslint-plugin-unicorn": "^48.0.1",
"globals": "^13.23.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/observables/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ebbbd8

Please sign in to comment.