Skip to content

Commit 4d0d95b

Browse files
committed
type-check script
1 parent 038a12b commit 4d0d95b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ jobs:
3131
run: npm run format
3232
- name: Test
3333
run: npm run test
34+
- name: Type Check
35+
run: npm run type-check

.lintstagedrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
"*.[jt]s": ["prettier --check", "eslint"],
3+
"*.ts": [() => "npm run type-check", "mocha"],
4+
};

package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"format": "prettier --check ./**/*.[jt]s",
1515
"lint": "eslint .",
1616
"test": "mocha",
17-
"test:watch": "mocha --watch --reporter min"
17+
"test:watch": "mocha --watch --reporter min",
18+
"type-check": "tsc --noEmit"
1819
},
1920
"repository": {
2021
"type": "git",
@@ -34,13 +35,6 @@
3435
"url": "https://github.com/jay-es/eslint-plugin-vue-sort-components/issues"
3536
},
3637
"homepage": "https://github.com/jay-es/eslint-plugin-vue-sort-components#readme",
37-
"lint-staged": {
38-
"*.[jt]s": [
39-
"prettier --check",
40-
"eslint"
41-
],
42-
"*.ts": "mocha"
43-
},
4438
"dependencies": {
4539
"natural-compare": "^1.4.0"
4640
},

0 commit comments

Comments
 (0)