Skip to content

Commit

Permalink
Upgrade Vite and Storybook (#7229)
Browse files Browse the repository at this point in the history
* upgrade vite and storybook

* fix storybook

* remove unused PrescriptionBuilder rescript files

* tailwind disable enforces-shorthand rule

---------

Co-authored-by: rithviknishad <[email protected]>
  • Loading branch information
sainak and rithviknishad authored Feb 21, 2024
1 parent a946b9e commit 86e461e
Show file tree
Hide file tree
Showing 11 changed files with 14,259 additions and 16,943 deletions.
30 changes: 21 additions & 9 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,21 +66,29 @@
{
"mode": "jsx-only",
"jsx-attributes": {
"include": ["label", "placeholder", "error", "title"],
"exclude": [".*"]
"include": [
"label",
"placeholder",
"error",
"title"
],
"exclude": [
".*"
]
},
"callees": {
"exclude": [".*"]
"exclude": [
".*"
]
}
}
],
"tailwindcss/no-custom-classname": "off",
"tailwindcss/migration-from-tailwind-2": "error",
"tailwindcss/classnames-order": "error",
"tailwindcss/enforces-shorthand": "error",
"tailwindcss/enforces-shorthand": "off",
"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

0 comments on commit 86e461e

Please sign in to comment.