From 543ffb9b4543ed35c50639c05dfa9219e446ed5a Mon Sep 17 00:00:00 2001 From: Bartosz Date: Wed, 16 Aug 2023 13:22:40 +0200 Subject: [PATCH] Removed deprecated rule --- TODO.md | 5 +++++ configs/base.js | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 66e2d5a..6f1ca49 100644 --- a/TODO.md +++ b/TODO.md @@ -7,3 +7,8 @@ - add tests - TS declaration for config - run `tsc` on precommit + + +## dd +- add tests for config keys +- fix moduleResolution and .d.ts diff --git a/configs/base.js b/configs/base.js index 8fe07b3..84e343e 100644 --- a/configs/base.js +++ b/configs/base.js @@ -301,8 +301,8 @@ export function prepareConfig() { }, { files: tsFiles, - plugins: { '@typescript-eslint': /** @type {any} */(ts) }, - languageOptions: { parser: /** @type {any} */(tsParser) }, + plugins: { '@typescript-eslint': ts }, + languageOptions: { parser: tsParser }, rules: { // @ts-ignore ...ts.configs['eslint-recommended'].overrides[0].rules, @@ -363,7 +363,6 @@ export function prepareConfig() { '@typescript-eslint/no-extra-non-null-assertion': 'error', '@typescript-eslint/no-extraneous-class': 'error', '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-implicit-any-catch': 'error', // import/consistent-type-specifier-style makes sure we don't inline `type` modifier '@typescript-eslint/no-import-type-side-effects': 'off', '@typescript-eslint/no-invalid-void-type': 'error',