Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Vite and Storybook #7229

Merged
merged 6 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:i18next/recommended",
"plugin:tailwindcss/recommended"
"plugin:tailwindcss/recommended",
"plugin:storybook/recommended"
],
"overrides": [
{
Expand All @@ -31,7 +32,7 @@
"react/jsx-no-target-blank": "off",
"i18next/no-literal-string": "off"
}
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -42,11 +43,14 @@
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"@typescript-eslint",
"i18next"
],
"rules": {
"quotes": ["error", "double"],
"quotes": [
"error",
"double"
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand All @@ -62,11 +66,20 @@
{
"mode": "jsx-only",
"jsx-attributes": {
"include": ["label", "placeholder", "error", "title"],
"exclude": [".*"]
"include": [
"label",
"placeholder",
"error",
"title"
],
"exclude": [
".*"
]
},
"callees": {
"exclude": [".*"]
"exclude": [
".*"
]
}
}
],
Expand All @@ -76,7 +89,6 @@
"tailwindcss/enforces-shorthand": "error",
"tailwindcss/no-contradicting-classname": "error"
},

"ignorePatterns": [
"dist",
"public",
Expand Down
14 changes: 5 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ const config: StorybookConfig = {
],
framework: {
name: "@storybook/react-vite",
options: {},
options: {
builder: {
viteConfigPath: "./.storybook/vite.config.mts",
},
},
},
docs: {
autodocs: "tag",
},
staticDirs: ["../public"],
core: {
builder: {
name: "@storybook/builder-vite",
options: {
viteConfigPath: "./.storybook/vite.config.ts",
},
},
},
};
export default config;
File renamed without changes.
Loading
Loading