build: run ls-lint on commit
This commit is contained in:
parent
927f6cbd62
commit
342d46d82a
@ -33,6 +33,7 @@ jobs:
|
||||
- *restore_cache
|
||||
- *install_deps
|
||||
- *save_cache
|
||||
- run: yarn ls-lint
|
||||
- run: yarn test --ci --runInBand
|
||||
|
||||
test-dts:
|
||||
|
@ -9,8 +9,8 @@
|
||||
"build": "node scripts/build.js",
|
||||
"size": "node scripts/build.js vue runtime-dom size-check -p -f global",
|
||||
"lint": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
|
||||
"ls-lint": "npx @ls-lint/ls-lint",
|
||||
"test": "node scripts/build.js vue -f global -d && ls-lint && jest",
|
||||
"ls-lint": "ls-lint",
|
||||
"test": "node scripts/build.js vue -f global -d && jest",
|
||||
"test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && tsd",
|
||||
"release": "node scripts/release.js",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
@ -23,7 +23,7 @@
|
||||
"directory": "test-dts"
|
||||
},
|
||||
"gitHooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-commit": "ls-lint && lint-staged",
|
||||
"commit-msg": "node scripts/verifyCommit.js"
|
||||
},
|
||||
"lint-staged": {
|
||||
|
Loading…
Reference in New Issue
Block a user