Skip to content

Commit

Permalink
Add eslint-plugin-regexp
Browse files Browse the repository at this point in the history
This change is created by:
- the `npm i eslint-plugin-regexp` command
- a few additions to the `.eslintrc.js` file.

Close #141
  • Loading branch information
ybiquitous committed Sep 14, 2021
1 parent c97d3ce commit 18d2a0e
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Expand Up @@ -15,6 +15,7 @@ module.exports = {
"plugin:node/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:regexp/recommended",
"prettier",
],
rules: {
Expand Down Expand Up @@ -113,5 +114,8 @@ module.exports = {
"prefer-template": "error",
"sort-requires/sort-requires": "error",
strict: ["error", "global"],

// Prefer code readability over a bit performance improvement.
"regexp/no-unused-capturing-group": "off",
},
};
174 changes: 168 additions & 6 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-regexp": "^1.1.0",
"eslint-plugin-sort-requires": "^2.1.0"
},
"publishConfig": {
Expand Down

0 comments on commit 18d2a0e

Please sign in to comment.