Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit fd8ecbf

Browse files
authored
feat: tailwind variants and fix prettier class imports (#12)
feat: installed tailwind-variants and import sorter fixed tailwind class sorter
1 parent 8af4482 commit fd8ecbf

File tree

5 files changed

+1295
-1163
lines changed

5 files changed

+1295
-1163
lines changed

.prettierignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ node_modules
22
dist
33
pnpm-lock.yaml
44
mockServiceWorker.js
5-
storybook-static
6-
ui-shadcn
5+
storybook-static

.prettierrc

+14-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,18 @@
44
"trailingComma": "all",
55
"semi": true,
66
"printWidth": 100,
7-
"plugins": ["prettier-plugin-tailwindcss"]
7+
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
8+
"tailwindConfig": "./tailwind.config.ts",
9+
"tailwindFunctions": ["tw", "tv", "cn", "cva", "clsx"],
10+
"tailwindAttributes": ["tw", "tv", "cn", "cva", "clsx"],
11+
"importOrder": [
12+
"^react(.*)?$",
13+
"^@react(.*)?$",
14+
"^vite(.*)?$",
15+
"^@vite(.*)?$",
16+
"<THIRD_PARTY_MODULES>",
17+
"^@/(.*)$",
18+
"^[./]"
19+
],
20+
"importOrderSeparation": true
821
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@storybook/react-vite": "8.3.5",
4343
"@storybook/test": "8.3.5",
4444
"@storybook/test-runner": "^0.19.1",
45+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
4546
"@types/react": "^18.3.10",
4647
"@types/react-dom": "^18.3.0",
4748
"@typescript-eslint/eslint-plugin": "^8.10.0",
@@ -66,8 +67,8 @@
6667
"msw-storybook-addon": "^2.0.3",
6768
"playwright": "^1.48.1",
6869
"postcss": "^8.4.47",
69-
"prettier": "3.3.3",
70-
"prettier-plugin-tailwindcss": "^0.6.8",
70+
"prettier": "3.1.0",
71+
"prettier-plugin-tailwindcss": "0.5.7",
7172
"react": "^18.3.1",
7273
"react-dom": "^18.3.1",
7374
"storybook": "8.3.5",
@@ -136,6 +137,7 @@
136137
"react-resizable-panels": "^2.1.4",
137138
"recharts": "^2.13.0",
138139
"sonner": "^1.5.0",
140+
"tailwind-variants": "^0.2.1",
139141
"ts-pattern": "^5.5.0",
140142
"vaul": "^1.1.0",
141143
"vite-plugin-svgr": "^4.2.0",

0 commit comments

Comments
 (0)