Skip to content

Commit

Permalink
Merge pull request #81 from siguici/ci
Browse files Browse the repository at this point in the history
Enhancing Code Quality: Linting and Formatting Improvements
  • Loading branch information
thejackshelton authored Mar 30, 2024
2 parents 6e683a8 + 8d7c398 commit dd3a348
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": [".git", "build", "dist", "node_modules"]
},
Expand Down
2 changes: 1 addition & 1 deletion lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,d.ts,jsx,tsx,json,jsonc}"
run: pnpm biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
run: pnpx biome ci {staged_files} && git update-index --again
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"name": "qwikdev-astro",
"version": "0.0.0",
"scripts": {
"check": "biome check --no-errors-on-unmatched --files-ignore-unknown=true .",
"fix": "biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true .",
"check": "biome ci .",
"check.format": "biome format .",
"check.lint": "biome check .",
"fix": "pnpm lint && pnpm format",
"format": "biome format --write .",
"lint": "biome check --apply-unsafe .",
"postinstall": "lefthook install",
"dev": "pnpm -C ./apps/node-demo run dev",
"build": "pnpm -C ./apps/node-demo run build",
Expand Down

0 comments on commit dd3a348

Please sign in to comment.