From f9834590f136139bb4e54428a7dd7694db916e17 Mon Sep 17 00:00:00 2001 From: girishsontakke Date: Sat, 2 Sep 2023 11:26:58 +0530 Subject: [PATCH 1/2] replaced the TS error 2360 with 2322 --- packages/eslint-plugin/src/configs/eslint-recommended.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/configs/eslint-recommended.ts b/packages/eslint-plugin/src/configs/eslint-recommended.ts index d6e13341060f..87f0395e8aed 100644 --- a/packages/eslint-plugin/src/configs/eslint-recommended.ts +++ b/packages/eslint-plugin/src/configs/eslint-recommended.ts @@ -23,7 +23,7 @@ export = { 'no-this-before-super': 'off', // ts(2376) 'no-undef': 'off', // ts(2304) 'no-unreachable': 'off', // ts(7027) - 'no-unsafe-negation': 'off', // ts(2365) & ts(2360) & ts(2358) + 'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358) 'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more 'prefer-const': 'error', // ts provides better types with const 'prefer-rest-params': 'error', // ts provides better types with rest args over arguments From dc0b2036bc6d959a8f3203324e81375feb33dae8 Mon Sep 17 00:00:00 2001 From: girishsontakke Date: Mon, 4 Sep 2023 19:58:41 +0530 Subject: [PATCH 2/2] changed the TS error codes --- packages/eslint-plugin/src/configs/eslint-recommended.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/eslint-plugin/src/configs/eslint-recommended.ts b/packages/eslint-plugin/src/configs/eslint-recommended.ts index 87f0395e8aed..a1cdae8759d2 100644 --- a/packages/eslint-plugin/src/configs/eslint-recommended.ts +++ b/packages/eslint-plugin/src/configs/eslint-recommended.ts @@ -14,14 +14,14 @@ export = { 'no-dupe-args': 'off', // ts(2300) 'no-dupe-class-members': 'off', // ts(2393) & ts(2300) 'no-dupe-keys': 'off', // ts(1117) - 'no-func-assign': 'off', // ts(2539) - 'no-import-assign': 'off', // ts(2539) & ts(2540) + 'no-func-assign': 'off', // ts(2630) + 'no-import-assign': 'off', // ts(2632) & ts(2540) 'no-new-symbol': 'off', // ts(7009) 'no-obj-calls': 'off', // ts(2349) 'no-redeclare': 'off', // ts(2451) 'no-setter-return': 'off', // ts(2408) - 'no-this-before-super': 'off', // ts(2376) - 'no-undef': 'off', // ts(2304) + 'no-this-before-super': 'off', // ts(2376) & ts(17009) + 'no-undef': 'off', // ts(2304) & ts(2552) 'no-unreachable': 'off', // ts(7027) 'no-unsafe-negation': 'off', // ts(2365) & ts(2322) & ts(2358) 'no-var': 'error', // ts transpiles let/const to var, so no need for vars any more