mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-28 01:51:22 +00:00
Update linting workflow and scripts
This commit is contained in:
parent
a6c4cb56f3
commit
bd4fa63e0a
2 changed files with 3 additions and 5 deletions
7
.github/workflows/linting.yaml
vendored
7
.github/workflows/linting.yaml
vendored
|
@ -31,8 +31,5 @@ jobs:
|
||||||
- name: Install Node.js dependencies
|
- name: Install Node.js dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run linters
|
- name: Run linting
|
||||||
uses: wearerequired/lint-action@v2.3.0
|
run: pnpm run lint-ci
|
||||||
with:
|
|
||||||
eslint: true
|
|
||||||
prettier: true
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"lint": "prettier --check . && eslint .",
|
"lint": "prettier --check . && eslint .",
|
||||||
|
"lint-ci": "prettier --check . && eslint . --no-fix --max-warnings=0",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"prepare": "npx husky && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
|
"prepare": "npx husky && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue