Skip to content

Commit

Permalink
Add eslint-plugin-regexp (#142)
Browse files Browse the repository at this point in the history
* Add eslint-plugin-regexp

This change is created by:
- the `npm i eslint-plugin-regexp` command
- a few additions to the `.eslintrc.js` file.
  • Loading branch information
ybiquitous committed Sep 14, 2021
1 parent a0b173b commit 64d409b
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Expand Up @@ -16,6 +16,7 @@ module.exports = {
"plugin:node/recommended-module",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:regexp/recommended",
"prettier",
],
rules: {
Expand Down Expand Up @@ -113,5 +114,8 @@ module.exports = {
"prefer-spread": "error",
"prefer-template": "error",
"sort-imports": ["error", { allowSeparatedGroups: true }],

// Prefer code readability, e.g. `[0-9A-Za-z]`.
"regexp/prefer-d": "off",
},
};
176 changes: 169 additions & 7 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -28,7 +28,8 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-node": "^11.1.0"
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-regexp": "^1.1.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 64d409b

Please sign in to comment.