Skip to content

Commit 2f77d43

Browse files
committed
Some linting and typecheck support
1 parent 64484ed commit 2f77d43

4 files changed

Lines changed: 273 additions & 169 deletions

File tree

‎.github/workflows/pr.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Install dependencies
2828
run: pnpm install --frozen-lockfile
2929

30-
- name: Lint
31-
run: pnpm lint
30+
- name: Lint, format check and typecheck
31+
run: pnpm check
3232

3333
- name: Build
3434
run: pnpm build

‎CLAUDE.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ pnpm preview # Preview production build
1616
pnpm lint # ESLint check
1717
pnpm lint:fix # ESLint auto-fix
1818
pnpm format # Prettier format
19+
pnpm format:check # Prettier check only
20+
pnpm typecheck # vue-tsc via nuxt typecheck
21+
pnpm check # lint + format:check + typecheck — run after every change
1922
```
2023

2124
There are no unit tests in this project.
@@ -64,5 +67,5 @@ For local dev against the Cupcake backend with `JWT_ENABLED=false`, no OIDC conf
6467
- TypeScript throughout; `any` is not acceptable
6568
- No semicolons (Prettier config)
6669
- ESLint + Prettier enforced via pre-commit hooks (lint-staged + husky)
67-
- All changes must pass `pnpm lint` before merging (enforced in `pr.yaml`)
70+
- All changes must pass `pnpm check` before merging (enforced in `pr.yaml`)
6871
- Use exact versions for dependencies

‎package.json‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
"postinstall": "nuxt prepare",
1111
"lint": "eslint .",
1212
"lint:fix": "eslint . --fix",
13-
"format": "prettier --write ."
13+
"format": "prettier --write .",
14+
"typecheck": "nuxt typecheck",
15+
"format:check": "prettier --check .",
16+
"check": "pnpm lint && pnpm format:check && pnpm typecheck"
1417
},
1518
"dependencies": {
1619
"@artmizu/nuxt-prometheus": "3.0.4",
@@ -32,13 +35,15 @@
3235
"vue-router": "5.4.0"
3336
},
3437
"devDependencies": {
38+
"@types/node": "26.6.5",
3539
"debug": "4.4.3",
3640
"husky": "9.1.7",
3741
"lint-staged": "17.6.0",
38-
"tailwindcss": "4.3.3"
42+
"tailwindcss": "4.3.3",
43+
"vue-tsc": "3.3.13"
3944
},
4045
"lint-staged": {
4146
"*.{js,ts,vue}": "pnpm lint:fix"
4247
},
4348
"packageManager": "pnpm@12.15.0"
44-
}
49+
}

0 commit comments

Comments
 (0)