Skip to content

Commit 6180f2a

Browse files
committed
lint: add Prettier plugin for sorting Tailwind class names
1 parent ab0d0a4 commit 6180f2a

File tree

3 files changed

+87
-6
lines changed

3 files changed

+87
-6
lines changed

.prettierrc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"singleQuote": true,
3-
"semi": true,
4-
"trailingComma": "all",
5-
"printWidth": 100,
6-
"tabWidth": 2,
7-
"arrowParens": "always"
2+
"singleQuote": true,
3+
"semi": true,
4+
"trailingComma": "all",
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"arrowParens": "always",
8+
"plugins": ["prettier-plugin-tailwindcss"]
89
}

package-lock.json

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"eslint-plugin-prettier": "^5.2.6",
4242
"postcss": "^8",
4343
"prettier": "^3.5.3",
44+
"prettier-plugin-tailwindcss": "^0.6.11",
4445
"tailwindcss": "^3.4.1",
4546
"typescript": "^5"
4647
}

0 commit comments

Comments
 (0)