Skip to content

Commit 57b1615

Browse files
author
Nick Sullivan
committed
✨ Add Prettier configuration for consistent code formatting
Establishes team-wide formatting standards to reduce style debates and improve code review focus. Uses 88-char width to match Black Python formatter. Excludes Django templates to avoid conflicts.
1 parent 3256382 commit 57b1615

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.prettierignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Ignore Django templates; use djlint instead if present
2+
**/templates/**/*.html
3+
4+
# Agent or custom formatted files (if used)
5+
*.agent
6+
7+
# Ignore built artifacts and vendor content
8+
**/.next/
9+
**/dist/
10+
**/build/
11+
**/node_modules/
12+
**/out/
13+
14+
# Locks and migrations
15+
pnpm-lock.yaml
16+
**/migrations/
17+

.prettierrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"printWidth": 88,
3+
"tabWidth": 4,
4+
"singleQuote": false,
5+
"trailingComma": "es5",
6+
"arrowParens": "always",
7+
"proseWrap": "always",
8+
"htmlWhitespaceSensitivity": "css",
9+
"embeddedLanguageFormatting": "auto",
10+
"singleAttributePerLine": false,
11+
"overrides": [
12+
{
13+
"files": ["*.md", "*.mdc"],
14+
"options": {
15+
"parser": "markdown",
16+
"tabWidth": 2,
17+
"printWidth": 88
18+
}
19+
},
20+
{
21+
"files": ["*.json", "*.jsonc"],
22+
"options": {
23+
"tabWidth": 2
24+
}
25+
},
26+
{
27+
"files": ["*.yml", "*.yaml"],
28+
"options": {
29+
"tabWidth": 2
30+
}
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)