Skip to content

Commit 5883d88

Browse files
committed
feat: introduce eslint-plugin-redos to ESLint configuration
1 parent ec14423 commit 5883d88

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/eslint-plugin-redos.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tksst/next-app-additions": minor
3+
---
4+
5+
introduce eslint-plugin-redos to ESLint configuration

src/bin/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ const main = async (): Promise<void> => {
111111
"@typescript-eslint/eslint-plugin",
112112
"@typescript-eslint/parser",
113113
"eslint-config-prettier",
114+
"eslint-plugin-redos",
114115
"eslint-plugin-simple-import-sort",
115116
"secretlint",
116117
"@secretlint/secretlint-rule-preset-recommend",

src/files/dot-eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"parserOptions": {
1010
"project": true
1111
},
12-
"plugins": ["simple-import-sort", "@typescript-eslint"],
12+
"plugins": ["simple-import-sort", "@typescript-eslint", "redos"],
1313
"rules": {
1414
"simple-import-sort/imports": "error",
1515
"simple-import-sort/exports": "error",
@@ -18,6 +18,7 @@
1818
{
1919
"checksVoidReturn": false
2020
}
21-
]
21+
],
22+
"redos/no-vulnerable": "error"
2223
}
2324
}

0 commit comments

Comments
 (0)