Skip to content

Commit 141bb52

Browse files
committed
chore: add typecheck from ci
cann't use with lint-staged lint-staged/lint-staged#468 check all files try fixed microsoft/TypeScript#27379 microsoft/TypeScript#49817 as an alternative https://github.com/gustavopch/tsc-files
1 parent a432cc5 commit 141bb52

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636

3737
- run: pnpm install
3838

39+
- name: Run typecheck
40+
run: npm run typecheck
41+
3942
- name: Run unit tests
4043
run: npm run test
4144

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"**/*.{css,scss}": [
33
"stylelint --fix"
44
],
5-
"*.{js,ts,jsx,tsx,md}": [
5+
"**/*.{js,ts,jsx,tsx,md}": [
66
"eslint --fix"
77
]
88
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"test": "ddc test",
2222
"lint": "eslint . --color",
2323
"lint:fix": "npm run lint -- --fix",
24-
"lint:style": "stylelint --fix 'src/**/*.{css,scss}' --cache --cache-location node_modules/.cache/stylelint/"
24+
"lint:style": "stylelint --fix 'src/**/*.{css,scss}' --cache --cache-location node_modules/.cache/stylelint/",
25+
"typecheck": "tsc --noEmit --skipLibCheck"
2526
},
2627
"scripts-info": {
2728
"init": "首次安装",

0 commit comments

Comments
 (0)