From c57c63ec141d747ad68f27e3654c8ffa303743f1 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Wed, 28 Aug 2024 18:43:02 +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 bc35483..1cffd17 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, }], },