Skip to content

Commit fb0ba3a

Browse files
committed
chore: pre-commit fix
1 parent 12778ff commit fb0ba3a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run lint:fix && npm run lint
1+
npx lint-staged

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,8 @@
111111
},
112112
"lint-staged": {
113113
"*.{js,ts}": [
114-
"npm run lint"
115-
],
116-
"**/*.ts": [
117-
"npm run build"
114+
"eslint --fix",
115+
"eslint"
118116
]
119117
}
120118
}

0 commit comments

Comments
 (0)