From 34fcd4afbc7d15a2dd93e8375b7c6a331f1eefec Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 3 Mar 2024 13:54:30 +0100 Subject: [PATCH] chore: enable throw-literal (#987) --- .eslintrc.cjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 8c49811f..0ed56cf3 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -86,12 +86,18 @@ module.exports = defineConfig({ // TODO @Shinigami92 2024-02-29: Remove these later '@typescript-eslint/no-base-to-string': 'off', '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/no-redundant-type-constituents': 'off', - '@typescript-eslint/no-throw-literal': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/restrict-template-expressions': 'off', '@typescript-eslint/unified-signatures': 'off', }, + overrides: [ + { + files: ['test/migrations/*.js'], + rules: { + '@typescript-eslint/no-throw-literal': 'off', + }, + }, + ], });