Skip to content

Commit a9c38c8

Browse files
authored
Use eslint-plugin-regexp (#392)
* Add eslint-plugin-regexp * Use eslint-plugin-regexp
1 parent 63b5cb1 commit a9c38c8

File tree

4 files changed

+71
-1
lines changed

4 files changed

+71
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Recommended ESLint Shareable Config for TypeScript
1616
- [@eslint-community/eslint-plugin-eslint-comments](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments)
1717
- [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc)
1818
- [eslint-plugin-tsdoc](https://www.npmjs.com/package/eslint-plugin-tsdoc)
19+
- [eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp)
1920

2021
## Requirements
2122

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ const config = {
1111
'love',
1212
'plugin:unicorn/recommended',
1313
'plugin:sonarjs/recommended',
14-
'plugin:@eslint-community/eslint-comments/recommended'
14+
'plugin:@eslint-community/eslint-comments/recommended',
15+
'plugin:regexp/recommended'
1516
],
17+
rules: {
18+
// Disable because it conflicts with eslint-plugin-regexp.
19+
'unicorn/better-regex': 'off'
20+
},
1621
overrides: [
1722
// For JavaScript
1823
{

package-lock.json

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"eslint": "^8.23.1",
1818
"eslint-config-love": "^47.0.0",
1919
"eslint-plugin-jsdoc": "^48.0.0",
20+
"eslint-plugin-regexp": "^2.6.0",
2021
"eslint-plugin-sonarjs": "^0.25.0",
2122
"eslint-plugin-tsdoc": "^0.3.0",
2223
"eslint-plugin-unicorn": "^53.0.0",
@@ -29,6 +30,7 @@
2930
"eslint": "8.57.0",
3031
"eslint-config-love": "47.0.0",
3132
"eslint-plugin-jsdoc": "48.2.7",
33+
"eslint-plugin-regexp": "2.6.0",
3234
"eslint-plugin-sonarjs": "0.25.1",
3335
"eslint-plugin-tsdoc": "0.3.0",
3436
"eslint-plugin-unicorn": "53.0.0",

0 commit comments

Comments
 (0)