diff --git a/biome.json b/biome.json index 55c5157..8d77a63 100644 --- a/biome.json +++ b/biome.json @@ -27,6 +27,9 @@ "enabled": true, "indentStyle": "space", "indentWidth": 2 + }, + "parser": { + "allowComments": true } }, "javascript": { @@ -44,12 +47,7 @@ }, "files": { "ignoreUnknown": true, - "include": ["**/*.js", "**/*.json", "**/*.ts"], - "ignore": [ - "**/tsconfig.json", - "**/tsconfig.*.json", - "dist/**/*", - "node_modules/**/*" - ] + "include": ["*.js", "*.json", "*.ts"], + "ignore": ["dist/**/*", "node_modules/**/*"] } } diff --git a/lefthook.yml b/lefthook.yml index 6dfade6..8b6eb11 100755 --- a/lefthook.yml +++ b/lefthook.yml @@ -1,16 +1,12 @@ -pre-commit: - parallel: true - commands: - format: - files: git diff --name-only --cached --diff-filter=AM @{push} - glob: '*.{js,ts,json,yml,md}' - run: bunx prettier --ignore-path .gitignore --check {files} - lint: - files: git diff --name-only --cached --diff-filter=AM @{push} - glob: '*.{js,ts}' - run: bunx eslint --cache {files} -commit-msg: - parallel: false - commands: - commitlint: - run: bunx commitlint --edit +pre-commit: + parallel: true + commands: + check: + files: git diff --name-only --cached --diff-filter=AM @{push} + glob: "*.{js,ts,json,yml,md}" + run: bunx biome check {files} +commit-msg: + parallel: false + commands: + commitlint: + run: bunx commitlint --edit