Skip to content

Commit

Permalink
Bump eslint-plugin-regexp from 1.15.0 to 2.0.0 (#1250)
Browse files Browse the repository at this point in the history
* Bump eslint-plugin-regexp from 1.15.0 to 2.0.0

Bumps [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) from 1.15.0 to 2.0.0.
- [Release notes](https://github.com/ota-meshi/eslint-plugin-regexp/releases)
- [Changelog](https://github.com/ota-meshi/eslint-plugin-regexp/blob/master/CHANGELOG.md)
- [Commits](ota-meshi/eslint-plugin-regexp@v1.15.0...v2.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-regexp
  dependency-type: direct:development
  update-type: version-update:semver-major
...

* Update ESLint configuration

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.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Cornelissen <[email protected]>
  • Loading branch information
dependabot[bot] and ericcornelissen authored Oct 20, 2023
1 parent 0d03b24 commit 376a77d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 50 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ rules:
- error
regexp/control-character-escape:
- error
regexp/grapheme-string-literal:
- error
regexp/hexadecimal-escape:
- error
- never # prefer unicode escape
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
82 changes: 33 additions & 49 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint-plugin-ava": "14.0.0",
"eslint-plugin-jsdoc": "46.8.2",
"eslint-plugin-jsonc": "2.10.0",
"eslint-plugin-regexp": "1.15.0",
"eslint-plugin-regexp": "2.0.0",
"eslint-plugin-yml": "1.10.0",
"fast-check": "3.13.0",
"husky": "8.0.3",
Expand Down

0 comments on commit 376a77d

Please sign in to comment.