From af2b60b1541cc8dc08e2f9e4c58ac920bb9a3a3a Mon Sep 17 00:00:00 2001 From: Nir Tamir Date: Mon, 10 Jun 2024 17:12:27 +0300 Subject: [PATCH] fix storybook --- package.json | 4 ++++ src/configs/storybook.ts | 25 +++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 98c183c12f..a63add95cb 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "eslint-plugin-solid": "^0.13.2", "eslint-plugin-svelte": ">=2.35.1", "eslint-plugin-tailwindcss": "^3.17.3", + "eslint-plugin-tsdoc": "^0.3.0", "prettier-plugin-astro": "^0.13.0", "prettier-plugin-packagejson": "^2.5.0", "prettier-plugin-slidev": "^1.0.5", @@ -105,6 +106,9 @@ "eslint-plugin-tailwindcss": { "optional": true }, + "eslint-plugin-tsdoc": { + "optional": true + }, "prettier-plugin-astro": { "optional": true }, diff --git a/src/configs/storybook.ts b/src/configs/storybook.ts index 335601753d..e3b26763c9 100644 --- a/src/configs/storybook.ts +++ b/src/configs/storybook.ts @@ -7,20 +7,17 @@ export async function storybook(): Promise> { await ensurePackages(["eslint-plugin-storybook"]); return [ - { - name: "nirtamir2/storybook", - ...fixupConfigRules( - compat.config({ - extends: [ - "plugin:storybook/recommended", - "plugin:storybook/csf-strict", - "plugin:storybook/addon-interactions", - ], - // .eslintignore is not supported with flat config, make sure to ignore also other build and test folders - ignorePatterns: ["!.storybook", "storybook-static"], - }), - ), - }, + ...fixupConfigRules( + compat.config({ + extends: [ + "plugin:storybook/recommended", + "plugin:storybook/csf-strict", + "plugin:storybook/addon-interactions", + ], + // .eslintignore is not supported with flat config, make sure to ignore also other build and test folders + ignorePatterns: ["!.storybook", "storybook-static"], + }), + ), { name: "nirtamir2/storybook/i18n", files: ["**.stories.tsx"],