Skip to content

Commit e347eef

Browse files
committed
feat(precommit->lint-staged): added lint-staged to project
1 parent dbc3bbd commit e347eef

3 files changed

Lines changed: 74 additions & 3 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bunx lint-staged

bun.lock

Lines changed: 66 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
"lint": "bunx eslint .",
2424
"prepare": "bunx husky"
2525
},
26+
"lint-staged": {
27+
"*.{ts,json,jsonc,md}": [
28+
"bunx eslint --fix",
29+
"bunx prettier --write"
30+
]
31+
},
2632
"engines": {
2733
"node": ">=1.0.0",
2834
"bun": ">=1.0.0"
@@ -40,6 +46,7 @@
4046
"globals": "^16.5.0",
4147
"husky": "^9.1.7",
4248
"jiti": "^2.6.1",
49+
"lint-staged": "^16.2.7",
4350
"path": "^0.12.7",
4451
"prettier": "^3.6.2",
4552
"process": "^0.11.10",

0 commit comments

Comments
 (0)