Add ESLint plugin eslint-plugin-regexp, enable recommended rules, apply all automated fixes (refs #657).

This commit is contained in:
David Anson 2022-12-19 21:36:24 -08:00
parent c346e0dbac
commit 6b01a98363
15 changed files with 41 additions and 34 deletions

View file

@ -7,6 +7,7 @@
"eslint:all",
"plugin:jsdoc/recommended",
"plugin:n/recommended",
"plugin:regexp/recommended",
"plugin:unicorn/all"
],
"ignorePatterns": [
@ -200,6 +201,11 @@
"n/prefer-promises/dns": "error",
"n/prefer-promises/fs": "error",
"regexp/no-empty-alternative": "off",
"regexp/no-super-linear-backtracking": "off",
"regexp/no-unused-capturing-group": "off",
"regexp/no-useless-assertions": "off",
"unicorn/better-regex": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/filename-case": "off",