Skip to content

Commit efa26de

Browse files
committed
feat: initialize prettier
1 parent 7012245 commit efa26de

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5",
7+
"plugins": ["prettier-plugin-tailwindcss"]
8+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"format": "pnpm exec prettier . --write"
1011
},
1112
"dependencies": {
1213
"class-variance-authority": "^0.7.1",
@@ -26,6 +27,8 @@
2627
"@types/react-dom": "^19",
2728
"eslint": "^9",
2829
"eslint-config-next": "15.2.1",
30+
"prettier": "3.5.3",
31+
"prettier-plugin-tailwindcss": "^0.6.11",
2932
"tailwindcss": "^4",
3033
"typescript": "^5"
3134
}

0 commit comments

Comments
 (0)