From 94d2e7314ca0c3577b54681210d12cfbab255428 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Wed, 28 Aug 2024 18:43:03 +0200 Subject: [PATCH] [INTERNAL] TypeScript/ESLint: Allow missing jsdoc, require consistend type import/export --- eslint.common.config.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/eslint.common.config.js b/eslint.common.config.js index bc354835c..1cffd1752 100644 --- a/eslint.common.config.js +++ b/eslint.common.config.js @@ -62,6 +62,12 @@ export default tseslint.config( // TypeScript specific overwrites // We must disable the base rule as it can report incorrect errors "no-unused-vars": "off", + "@typescript-eslint/consistent-type-imports": ["error", { + fixMixedExportsWithInlineTypeSpecifier: true, + }], + "@typescript-eslint/consistent-type-exports": ["error", { + fixStyle: "inline-type-imports", + }], "@typescript-eslint/no-unused-vars": [ "error", { argsIgnorePattern: "^_", @@ -120,7 +126,7 @@ export default tseslint.config( "no-console": "error", "no-eval": "error", - "valid-jsdoc": 0, + "valid-jsdoc": "off", }, }, { // JSdoc only applying to sources @@ -130,9 +136,10 @@ export default tseslint.config( // Overwriting JSDoc rules in a separate config with the same files pattern files: ["src/**/*.ts"], rules: { - "jsdoc/require-returns": 0, - "jsdoc/require-returns-description": 0, - "jsdoc/tag-lines": [2, "any", { + "jsdoc/require-jsdoc": "off", + "jsdoc/require-returns": "off", + "jsdoc/require-returns-description": "off", + "jsdoc/tag-lines": ["error", "any", { startLines: 1, }], },