Skip to content

Commit

Permalink
OPHJOD-274: Fix Storybook linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sauanto committed Mar 20, 2024
1 parent 8e49d9a commit ef6c15f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

*storybook.log
/storybook-static/
.cache
storybook-static
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../lib/tailwind.css';
import '../lib/index.css';
import type { Preview } from '@storybook/react';

const preview: Preview = {
Expand Down
11 changes: 11 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src", "lib"],
"include": ["lib"],
"references": [{ "path": "./tsconfig.node.json" }]
}
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit ef6c15f

Please sign in to comment.