From ef6c15f4490aef74a1ad14497194a306edbebff3 Mon Sep 17 00:00:00 2001 From: Sauli Anto Date: Tue, 19 Mar 2024 17:10:15 +0200 Subject: [PATCH] OPHJOD-274: Fix Storybook linting --- .eslintrc.cjs | 2 +- .gitignore | 4 ++-- .storybook/preview.ts | 2 +- .vscode/extensions.json | 11 +++++++++++ tsconfig.json | 2 +- tsconfig.node.json | 2 +- 6 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 978340a..522a0aa 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -13,7 +13,7 @@ module.exports = { 'plugin:sonarjs/recommended', 'prettier', // must be last, override other configs ], - ignorePatterns: ['dist', '.eslintrc.cjs', 'storybook-static'], + ignorePatterns: ['dist', '.eslintrc.cjs', 'storybook-static', '!.storybook'], parser: '@typescript-eslint/parser', parserOptions: { project: ['./tsconfig.json', './tsconfig.node.json'], diff --git a/.gitignore b/.gitignore index c632bf6..f52343a 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + *storybook.log -/storybook-static/ -.cache +storybook-static diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 9ecc99f..79972e7 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,4 +1,4 @@ -import '../lib/tailwind.css'; +import '../lib/index.css'; import type { Preview } from '@storybook/react'; const preview: Preview = { diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..d24b6dd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,11 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "deque-systems.vscode-axe-linter", + "vitest.explorer", + "GitHub.vscode-github-actions", + "GitHub.vscode-pull-request-github", + "bradlc.vscode-tailwindcss" + ] +} diff --git a/tsconfig.json b/tsconfig.json index efa4736..be528cb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,6 +20,6 @@ "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src", "lib"], + "include": ["lib"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json index 6c47bb3..3ce6add 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -7,5 +7,5 @@ "allowSyntheticDefaultImports": true, "strict": true }, - "include": ["vite.config.ts", "postcss.config.js", "tailwind.config.js"] + "include": ["vite.config.ts", "postcss.config.js", "tailwind.config.js", ".storybook/**/*.ts"] }