add client lint command
This commit is contained in:
@@ -16,6 +16,7 @@ jobs:
|
||||
- run: test -f README.md && test -f AGENTS.md && test -f .prettierrc.json
|
||||
- run: npm ci
|
||||
- run: npm run format:check
|
||||
- run: npm run lint
|
||||
- run: npm run check
|
||||
- run: npm run build
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
@@ -14,4 +14,4 @@ jobs:
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
- run: test -s CHANGELOG.md && npm ci && npm run format:check && npm run check && npm run build
|
||||
- run: test -s CHANGELOG.md && npm ci && npm run format:check && npm run lint && npm run check && npm run build
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# Contributing
|
||||
|
||||
Run formatting, linting, type checks, tests, and the AppImage build before submission. Use deterministic mocked server/API fixtures.
|
||||
The client uses Prettier for formatting and `svelte-check` for the lint/check
|
||||
gate. Run `npm run format:check`, `npm run lint`, `npm run check`, and
|
||||
`npm run build` before pushing changes.
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"tauri:build": "tauri build",
|
||||
"build": "vite build",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"lint": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check ."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user