From 120b1c5f24c035cdb95c7989d1b4418273316952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 26 Mar 2024 19:52:25 +0100 Subject: [PATCH] Use only-throw-error rule instead of deprecated no-throw-literal. --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index cc1f99ae..31e7ded3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -388,7 +388,6 @@ } ], "@typescript-eslint/no-this-alias": "error", - "@typescript-eslint/no-throw-literal": "error", "@typescript-eslint/no-type-alias": "off", "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error", "@typescript-eslint/no-unnecessary-condition": [ @@ -439,6 +438,7 @@ "@typescript-eslint/no-useless-template-literals": "error", "@typescript-eslint/no-var-requires": "error", "@typescript-eslint/non-nullable-type-assertion-style": "error", + "@typescript-eslint/only-throw-error": "error", "@typescript-eslint/parameter-properties": "error", "@typescript-eslint/prefer-as-const": "error", "@typescript-eslint/prefer-destructuring": [