From 95a8fcbcaedbb1520c1df740a704d6e9c5676135 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 12 Aug 2024 12:55:22 +0200 Subject: [PATCH] split up lint & format task - so CI can catch linting errors --- README.md | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 617ce1a..b3315ef 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,12 @@ npm run test:unit npm test ``` +If linting errors are encountered, try to fix it automatically with: + +```bash +npm run format +``` + ## Changelog See [CHANGELOG.md](CHANGELOG.md). diff --git a/package.json b/package.json index d03be37..ab53819 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "start": "rm -rf ./dist && tsc --watch", "test": "npm run validate && npm run test:unit", "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", "changelog": "auto-changelog -p", "release": "release-it --non-interactive",