From 54772da7de953beb5a55614976db324e79d98ebf Mon Sep 17 00:00:00 2001 From: tomo-kn Date: Mon, 4 Dec 2023 23:03:12 +0900 Subject: [PATCH] chore: eslint-plugin-redos --- .eslintrc.js | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2acdbc101..c5697965d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,7 @@ module.exports = { extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", + "plugin:redos/recommended", "prettier", ], rules: { @@ -67,4 +68,12 @@ module.exports = { }, ], }, + overrides: [ + { + files: ["**/*.test.ts"], + rules: { + "redos/no-vulnerable": "off", + }, + }, + ], }; diff --git a/package.json b/package.json index c900c6ec6..9d99d0d02 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,11 @@ "babel-jest": "^29.5.0", "benchmark": "^2.1.4", "dependency-cruiser": "^9.19.0", - "eslint": "^8.11.0", + "eslint": "^8.35.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-ban": "^1.6.0", "eslint-plugin-import": "^2.25.4", + "eslint-plugin-redos": "^4.4.5", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-unused-imports": "^2.0.0", "husky": "^7.0.4",