Skip to content

Commit 342d46d

Browse files
committed
build: run ls-lint on commit
1 parent 927f6cb commit 342d46d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- *restore_cache
3434
- *install_deps
3535
- *save_cache
36+
- run: yarn ls-lint
3637
- run: yarn test --ci --runInBand
3738

3839
test-dts:

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"build": "node scripts/build.js",
1010
"size": "node scripts/build.js vue runtime-dom size-check -p -f global",
1111
"lint": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
12-
"ls-lint": "npx @ls-lint/ls-lint",
13-
"test": "node scripts/build.js vue -f global -d && ls-lint && jest",
12+
"ls-lint": "ls-lint",
13+
"test": "node scripts/build.js vue -f global -d && jest",
1414
"test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && tsd",
1515
"release": "node scripts/release.js",
1616
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
@@ -23,7 +23,7 @@
2323
"directory": "test-dts"
2424
},
2525
"gitHooks": {
26-
"pre-commit": "lint-staged",
26+
"pre-commit": "ls-lint && lint-staged",
2727
"commit-msg": "node scripts/verifyCommit.js"
2828
},
2929
"lint-staged": {

0 commit comments

Comments
 (0)