Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Prettier Check

on:
pull_request:
branches: [main, dev]
push:
branches: [main, dev]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Prettier check
run: pnpm run format:check
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**/node_modules
**/.next
**/.vercel
**/drizzle
**/components.json
**/drizzle.config.ts
**/eslint.config.mjs
**/next.config.ts
**/package-lock.json
**/package.json
**/pnpm-lock.yaml
**/postcss.config.mjs
**/tsconfig.drizzle.json
**/tsconfig.json
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"useTabs": true,
"tabWidth": 2,
"trailingComma": "all",
"semi": true,
"singleQuote": true,
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "always"
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,14 @@
"drizzle-kit": "^0.31.7",
"eslint": "^9.39.1",
"eslint-config-next": "15.3.2",
"prettier": "3.8.1",
"tailwindcss": "^4.1.17",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.4"
},
"scripts": {
"format:check": "prettier --check . --ignore-path .gitignore",
"format:fix": "prettier --write . --ignore-path .gitignore"
}
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading