From 9a96e18400e0a0d738d159d9d01faf41d3586249 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Sat, 9 May 2020 17:17:36 -0700 Subject: [PATCH] feat(eslint-plugin): update `eslint-recommended` set (#1996) --- .../src/configs/eslint-recommended.ts | 42 +++++++------------ 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/packages/eslint-plugin/src/configs/eslint-recommended.ts b/packages/eslint-plugin/src/configs/eslint-recommended.ts index 263180cbf3b..4999a528bdf 100644 --- a/packages/eslint-plugin/src/configs/eslint-recommended.ts +++ b/packages/eslint-plugin/src/configs/eslint-recommended.ts @@ -7,32 +7,22 @@ export default { { files: ['*.ts', '*.tsx'], rules: { - // Checked by Typescript - ts(2378) - 'getter-return': 'off', - // Checked by Typescript - ts(2300) - 'no-dupe-args': 'off', - // Checked by Typescript - ts(1117) - 'no-dupe-keys': 'off', - // Checked by Typescript - ts(7027) - 'no-unreachable': 'off', - // Checked by Typescript - ts(2367) - 'valid-typeof': 'off', - // Checked by Typescript - ts(2588) - 'no-const-assign': 'off', - // Checked by Typescript - ts(2539) - 'no-func-assign': 'off', - // Checked by Typescript - ts(2588) - 'no-new-symbol': 'off', - // Checked by Typescript - ts(2349) - 'no-obj-calls': 'off', - // Checked by Typescript - ts(2376) - 'no-this-before-super': 'off', - // This is checked by Typescript using the option `strictNullChecks`. - 'no-undef': 'off', - // This is already checked by Typescript. - 'no-dupe-class-members': 'off', - // This is already checked by Typescript. - 'no-redeclare': 'off', + 'constructor-super': 'off', // ts(2335) & ts(2377) + 'getter-return': 'off', // ts(2378) + 'no-const-assign': 'off', // ts(2588) + '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-new-symbol': 'off', // ts(2588) + '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-unreachable': 'off', // ts(7027) + 'no-unsafe-negation': 'off', // ts(2365) & ts(2360) & ts(2358) + 'valid-typeof': 'off', // ts(2367) }, }, ],