Skip to content

Commit 020e017

Browse files
committed
feat: add Prettier for code formatting
Adds .prettierrc with Tailwind CSS plugin, .prettierignore, and format scripts. Closes #27
1 parent 60c8f15 commit 020e017

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.next
3+
out
4+
build
5+
coverage
6+
pnpm-lock.yaml

.prettierrc

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

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"format": "prettier --write .",
11+
"format:check": "prettier --check ."
1012
},
1113
"dependencies": {
1214
"@octokit/graphql": "^9.0.3",
@@ -30,6 +32,8 @@
3032
"eslint-config-next": "^16.2.2",
3133
"postcss": "^8.4.47",
3234
"tailwindcss": "^3.4.14",
35+
"prettier": "^3.4.2",
36+
"prettier-plugin-tailwindcss": "^0.6.11",
3337
"typescript": "^6.0.2"
3438
}
3539
}

0 commit comments

Comments
 (0)