Skip to content

Commit 900cb60

Browse files
committed
Replace lint-staged with direct lint --staged call
- Remove lint-staged dependency and configuration - Update pre-commit hook to use lint --staged directly
1 parent 49dec24 commit 900cb60

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if [ -z "${DISABLE_PRECOMMIT_LINT}" ]; then
2-
pnpm run lint-staged
2+
pnpm run lint --staged
33
else
44
echo "Skipping lint due to DISABLE_PRECOMMIT_LINT env var"
55
fi

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
"fix": "node scripts/lint-affected.mjs --fix",
5353
"knip:dependencies": "knip --dependencies",
5454
"knip:exports": "knip --include exports,duplicates",
55-
"lint-staged": "lint-staged",
56-
"precommit": "lint-staged",
5755
"prepare": "husky",
5856
"prepublishOnly": "echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",
5957
"pretest:unit": "pnpm run build",
@@ -100,7 +98,6 @@
10098
"globals": "16.4.0",
10199
"husky": "9.1.7",
102100
"knip": "5.63.1",
103-
"lint-staged": "16.1.6",
104101
"npm-run-all2": "8.0.4",
105102
"oxlint": "1.15.0",
106103
"pacote": "21.0.1",
@@ -124,11 +121,6 @@
124121
"data/**/*.json",
125122
"CHANGELOG.md"
126123
],
127-
"lint-staged": {
128-
"*.{cjs,js,json,md,mjs,mts,ts}": [
129-
"pnpm run fix"
130-
]
131-
},
132124
"pnpm": {
133125
"overrides": {
134126
"vite": "7.1.7"

0 commit comments

Comments
 (0)