1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-10-22 03:12:43 +02:00

split up lint & format task

- so CI can catch linting errors
This commit is contained in:
Matthias Kretschmann 2024-08-12 12:55:22 +02:00
parent d8bd20f370
commit 95a8fcbcae
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 8 additions and 1 deletions

View File

@ -180,6 +180,12 @@ npm run test:unit
npm test npm test
``` ```
If linting errors are encountered, try to fix it automatically with:
```bash
npm run format
```
## Changelog ## Changelog
See [CHANGELOG.md](CHANGELOG.md). See [CHANGELOG.md](CHANGELOG.md).

View File

@ -13,7 +13,8 @@
"start": "rm -rf ./dist && tsc --watch", "start": "rm -rf ./dist && tsc --watch",
"test": "npm run validate && npm run test:unit", "test": "npm run validate && npm run test:unit",
"test:unit": "vitest run --coverage --config ./test/vitest.config.ts", "test:unit": "vitest run --coverage --config ./test/vitest.config.ts",
"lint": "biome check --write .", "lint": "biome check .",
"format": "biome check --write .",
"typecheck": "tsc --noEmit --pretty", "typecheck": "tsc --noEmit --pretty",
"changelog": "auto-changelog -p", "changelog": "auto-changelog -p",
"release": "release-it --non-interactive", "release": "release-it --non-interactive",