Skip to content

Commit ac580ea

Browse files
committed
Setup eslint-plugin-redos-detector
1 parent 0b8d76e commit ac580ea

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
'plugin:@typescript-eslint/recommended-requiring-type-checking',
66
'prettier',
77
],
8-
plugins: ['import'],
8+
plugins: ['import', 'redos-detector'],
99
parser: 'espree',
1010
parserOptions: {
1111
ecmaVersion: 2019,
@@ -35,6 +35,7 @@ module.exports = {
3535
'no-var': ['error'],
3636
'no-use-before-define': ['error'],
3737
'no-warning-comments': ['error'],
38+
'redos-detector/no-unsafe-regex': ['error'],
3839
},
3940
overrides: [
4041
{

package-lock.json

Lines changed: 10 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"eslint": "8.56.0",
6060
"eslint-config-prettier": "9.1.0",
6161
"eslint-plugin-import": "2.29.1",
62+
"eslint-plugin-redos-detector": "2.4.0",
6263
"espree": "9.6.1",
6364
"husky": "8.0.3",
6465
"knex": "3.1.0",

0 commit comments

Comments
 (0)