Skip to content

Commit

Permalink
chore: use pretty-quick
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Mar 18, 2024
1 parent b396cc6 commit a349d36
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"*.{js,ts,cjs,mjs,cts,mts,d.cts,d.mts,jsx,tsx,json,jsonc}": [
"biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"
],
"*.{md,yml,yaml,css,html}": ["prettier --write"]
"*.{md,yml,yaml,css,html}": ["pretty-quick --staged"]
}
141 changes: 141 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
"dev": "vite",
"lint": "biome lint .",
"type-check": "tsc --noEmit --emitDeclarationOnly false",
"format:prettier": "prettier . --write",
"format:prettier": "pretty-quick",
"format:biome": "biome format . --write",
"format": "conc \"npm:format:prettier\" \"npm:format:biome\"",
"format": "npm run format:prettier && npm run format:biome",
"check:biome": "biome check --apply .",
"check": "conc \"npm:format:prettier\" \"npm:check:biome\"",
"check": "npm run format:prettier && npm run check:biome",
"clear:dist": "rimraf dist",
"prebuild": "npm run check && npm run type-check && npm run clear:dist",
"build:es": "vite build",
Expand Down Expand Up @@ -107,6 +107,7 @@
"lint-staged": "^15.2.2",
"npm-check-updates": "^16.14.17",
"prettier": "^3.2.5",
"pretty-quick": "^4.0.0",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.11.0",
"tsx": "^4.7.1",
Expand Down

0 comments on commit a349d36

Please sign in to comment.