Skip to content

Commit fcee86f

Browse files
committed
Use yarn to run lint-staged
1 parent 4e1d63c commit fcee86f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
yarn lint-staged

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"clean": "rm -rf build build-cjs",
4040
"checkformatting": "prettier --check \"**/*.{js,jsx,ts,tsx,yml}\"",
4141
"format": "prettier --list-different --write \"**/*.{js,jsx,ts,tsx,yml}\"",
42+
"lint-staged": "lint-staged",
4243
"prepublish": "rm -rf build && yarn build && yarn build-cjs",
4344
"test": "yarn build && echo '{\"type\":\"module\"}' > build/package.json && nyc mocha -r build/test/init.js build/test/*.js && rm build/package.json",
4445
"test-cjs": "yarn build-cjs && nyc mocha -r build-cjs/test/init.js build-cjs/test/*.js",

0 commit comments

Comments
 (0)