Skip to content

Commit 70e11b0

Browse files
committed
feat: add prettier
1 parent 11fe3a2 commit 70e11b0

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Diff for: .prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Minimized files
2+
**.min.css
3+
fuse_*.js

Diff for: .prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"proseWrap": "always",
4+
"plugins": ["prettier-plugin-tailwindcss"]
5+
}

Diff for: package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"build:rm-db.json": "rm db.json || exit 0",
1212
"build:css": "npx postcss themes/coo/source/css/style.tailwindcss -o themes/coo/source/css/style.css",
1313
"build:generate": "npx hexo generate",
14-
"build:gulp": "npx gulp --max-old-space-size=4096"
14+
"build:gulp": "npx gulp --max-old-space-size=4096",
15+
"format": "prettier --write"
1516
},
1617
"hexo": {
1718
"version": "5.4.2"
@@ -69,6 +70,8 @@
6970
"postcss-cli": "^9.1.0",
7071
"postcss-import": "^14.0.2",
7172
"postcss-minify": "^1.1.0",
73+
"prettier": "^3.2.5",
74+
"prettier-plugin-tailwindcss": "^0.5.14",
7275
"sync-request": "^6.1.0",
7376
"tailwindcss": "^3.0.1",
7477
"tailwindcss-animate": "^1.0.5",

0 commit comments

Comments
 (0)