Skip to content

Commit

Permalink
upgrade vite and storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak committed Feb 19, 2024
1 parent dacc7f8 commit 2c38d63
Show file tree
Hide file tree
Showing 8 changed files with 14,267 additions and 16,304 deletions.
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.ts"
}
},
},
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

0 comments on commit 2c38d63

Please sign in to comment.