Skip to content

Commit

Permalink
chore: replaced lint staged to nano staged (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gajendra-singh-r authored Dec 4, 2024
1 parent 31979a3 commit c360498
Show file tree
Hide file tree
Showing 5 changed files with 6,346 additions and 5,398 deletions.
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged --concurrent false --relative
./node_modules/.bin/nano-staged
5 changes: 0 additions & 5 deletions .lintstagedrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .nano-staged.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
"{apps,packages,tools}/**/*.{js,jsx,ts,tsx,json}": (api) =>
`pnpm dlx @biomejs/biome check --apply ${api.filenames.join(" ")}`,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"czg": "^1.9.1",
"husky": "^9.0.11",
"is-ci": "^3.0.1",
"lint-staged": "^15.2.2",
"nano-staged": "^0.8.0",
"nx": "19.3.1",
"rollup": "^4.18.0",
"supertest": "^6.3.4",
Expand Down
Loading

0 comments on commit c360498

Please sign in to comment.