Skip to content

Commit a399a4f

Browse files
committed
Prettier config
Dockerfile timeout for pnpm install
1 parent d3a23c9 commit a399a4f

7 files changed

Lines changed: 138 additions & 60 deletions

File tree

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
dist
3+
build
4+
.next
5+
coverage
6+
*.min.js
7+
pnpm-lock.yaml
8+
**/prisma/migrations
9+
**/prisma/client

.prettierrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"semi": false,
3+
"singleQuote": false,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 80,
7+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
8+
"importOrder": [
9+
"^react(-dom)?$",
10+
"^react-",
11+
"^next",
12+
"^@?\\w",
13+
"^@repo/",
14+
"^@/",
15+
"^\\.\\./",
16+
"^\\./"
17+
],
18+
"importOrderSeparation": false,
19+
"importOrderSortSpecifiers": true
20+
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY packages/eslint-config/package.json ./packages/eslint-config/
1212
COPY packages/typescript-config/package.json ./packages/typescript-config/
1313
COPY packages/ui/package.json ./packages/ui/
1414

15-
RUN pnpm install --frozen-lockfile
15+
RUN timeout 60 pnpm install --frozen-lockfile
1616

1717
COPY . .
1818

Dockerfile.node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ COPY packages/eslint-config/package.json ./packages/eslint-config/
1212
COPY packages/typescript-config/package.json ./packages/typescript-config/
1313
COPY packages/ui/package.json ./packages/ui/
1414

15-
RUN pnpm install --frozen-lockfile
15+
RUN timeout 60 pnpm install --frozen-lockfile
1616

1717
COPY . .
1818

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
- Added ESLint configurations for all packages and apps
1010
- Updated TypeScript configurations across the monorepo
1111
- Consolidated `@types/react` version overrides for consistency
12+
- Added Prettier configuration with automatic import sorting

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"version": "0.10.3",
2+
"version": "0.10.4",
33
"name": "letterspace",
44
"private": true,
55
"scripts": {
66
"build": "turbo build",
77
"dev": "turbo dev",
88
"lint": "turbo lint",
99
"check-types": "turbo check-types",
10-
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
10+
"format": "prettier --write .",
1111
"knip": "knip"
1212
},
1313
"devDependencies": {
14+
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
1415
"@types/node": "^24.0.3",
1516
"bun-types": "^1.2.17",
1617
"knip": "^5.77.1",

0 commit comments

Comments
 (0)