From edf8d6dcd2b8e7fdbc27b98c071a6529c842008d Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 26 Aug 2020 23:59:08 +0200 Subject: [PATCH] Add `@typescript-eslint/no-implicit-any-catch` rule https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implicit-any-catch.md --- index.js | 1 + package.json | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index cecc18f..85f7254 100644 --- a/index.js +++ b/index.js @@ -312,6 +312,7 @@ module.exports = { } ], '@typescript-eslint/no-for-in-array': 'error', + '@typescript-eslint/no-implicit-any-catch': 'error', '@typescript-eslint/no-inferrable-types': 'error', // Disabled for now as it has too many false-positives. diff --git a/package.json b/package.json index 4159466..3efedad 100644 --- a/package.json +++ b/package.json @@ -44,15 +44,15 @@ "simple" ], "devDependencies": { - "@typescript-eslint/eslint-plugin": "^3.6.0", - "@typescript-eslint/parser": "^3.6.0", + "@typescript-eslint/eslint-plugin": "^3.10.0", + "@typescript-eslint/parser": "^3.10.0", "ava": "^2.4.0", - "eslint": "^7.3.1", + "eslint": "^7.7.0", "temp-write": "^4.0.0", "typescript": "^3.9.5" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": ">=3.6.0", + "@typescript-eslint/eslint-plugin": ">=3.10.0", "eslint": ">=6.6.0", "typescript": ">=3.6.0" }