build: run ls-lint on commit

This commit is contained in:
Evan You 2020-03-19 16:38:31 -04:00
parent 927f6cbd62
commit 342d46d82a
2 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,7 @@ jobs:
- *restore_cache
- *install_deps
- *save_cache
- run: yarn ls-lint
- run: yarn test --ci --runInBand
test-dts:

View File

@ -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": {