From 129c86fb64e60c828fe6423b739f65576bd6e335 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Wed, 25 Oct 2023 22:27:28 +0200 Subject: infra(eslint): config cleanup (#2468) --- .eslintrc.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index eb82b380..bf9afd39 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,26 +15,21 @@ module.exports = defineConfig({ reportUnusedDisableDirectives: true, extends: [ 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-type-checked', 'plugin:prettier/recommended', + 'plugin:deprecation/recommended', 'plugin:jsdoc/recommended-typescript-error', 'plugin:unicorn/recommended', ], - parser: '@typescript-eslint/parser', parserOptions: { project: ['./tsconfig.json'], - sourceType: 'module', warnOnUnsupportedTypeScriptVersion: false, }, - plugins: ['@typescript-eslint', 'prettier', 'deprecation', 'jsdoc'], rules: { eqeqeq: ['error', 'always', { null: 'ignore' }], 'no-else-return': 'error', - 'prefer-template': 'error', 'no-restricted-globals': ['error', 'Intl'], - - 'deprecation/deprecation': 'error', + 'prefer-template': 'error', 'unicorn/no-nested-ternary': 'off', // incompatible with prettier 'unicorn/no-null': 'off', // incompatible with TypeScript @@ -97,11 +92,9 @@ module.exports = defineConfig({ 'error', { ignoreParameters: true }, ], - '@typescript-eslint/no-unsafe-argument': 'error', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-return': 'error', '@typescript-eslint/padding-line-between-statements': [ 'error', { blankLine: 'always', prev: 'block-like', next: '*' }, @@ -113,8 +106,7 @@ module.exports = defineConfig({ ], '@typescript-eslint/unbound-method': 'off', - 'jsdoc/no-types': 'error', - 'jsdoc/require-jsdoc': 'off', + 'jsdoc/require-jsdoc': 'off', // Enabled only for src/**/*.ts 'jsdoc/require-returns': 'off', 'jsdoc/sort-tags': [ 'error', -- cgit v1.2.3