Skip to content

Commit

Permalink
feat: add eslint-plugin-optimize-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 3, 2021
1 parent 5653169 commit 1660d16
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
"sourceType": "module"
},
"plugins": ["only-warn"],
"extends": ["eslint:recommended", "prettier"],
"extends": ["eslint:recommended", "plugin:optimize-regex/all", "prettier"],
"ignorePatterns": ["node_modules/"],
"overrides": [
{
Expand All @@ -35,6 +35,7 @@ module.exports = {
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:optimize-regex/all",
"prettier",
"prettier/@typescript-eslint"
],
Expand Down Expand Up @@ -65,7 +66,7 @@ module.exports = {
"files": ["**/*.coffee"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
"extends": ["plugin:coffee/eslint-recommended", "plugin:optimize-regex/all"]
},
{
// YAML files
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"eslint-plugin-coffee": "^0.1.13",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-only-warn": "^1.0.2",
"eslint-plugin-optimize-regex": "^1.2.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-yaml": "^0.3.0",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 1660d16

Please sign in to comment.