Skip to content

Commit 62f912a

Browse files
ci: add prettier step to ci (#1112)
* ci: add prettier step to ci * chore: add .prettierignore
1 parent 6e3a095 commit 62f912a

File tree

4 files changed

+1383
-848
lines changed

4 files changed

+1383
-848
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Check types
3737
run: pnpm type-check
3838

39+
- name: Check Prettier
40+
run: pnpm format:ci
41+
3942
- name: Check linting
4043
run: pnpm lint
4144

.prettierignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# JetBrains IDE files
7+
.idea/
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
pnpm-lock.yaml
23+
24+
# debug
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type-check": "tsc --noEmit",
1818
"lint": "eslint \"src/**/*.+(ts|js|tsx)\"",
1919
"format": "prettier . --write",
20+
"format:ci": "prettier --list-different .",
2021
"postinstall": "husky"
2122
},
2223
"lint-staged": {

0 commit comments

Comments
 (0)