Skip to content
Merged
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
31 changes: 31 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint

on:
pull_request:
push:

jobs:
lint:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npm run lint

- name: Run prettier
run: npm run fmt:check

- name: Build project
run: npm run build
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependencies and build artifacts
.yarn/
.pnp.*
node_modules/
dist/
build/

# Public assets
public/
index.html

# GitHub workflows
.github/

# Documentation
README.md

# Config files
*.config.js
*.config.ts
vite.config.ts
eslint.config.js
tsconfig.*

# Lock files
yarn.lock
package-lock.json
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
"bracketSpacing": true,
"bracketSameLine": false,
"endOfLine": "auto",
"singleAttributePerLine": true,
"insertFinalNewline": true
"singleAttributePerLine": true
}
17 changes: 17 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"preview": "vite preview"
},
"dependencies": {
Expand Down Expand Up @@ -40,6 +42,7 @@
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.19",
"globals": "^15.15.0",
"prettier": "^3.4.2",
"typescript": "~5.7.2",
"typescript-eslint": "^8.24.1",
"vite": "^6.2.0",
Expand Down
Loading