Skip to content

Commit

Permalink
feat: add typecheck on lint-staged and build-time only #253
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Sep 25, 2024
1 parent 2dc1326 commit d207148
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:

- run: yarn install
- run: yarn prepare
- run: yarn typecheck
- run: yarn lint
- run: yarn build

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineNuxtConfig({
},

typescript: {
typeCheck: true,
typeCheck: 'build',
},

eslint: {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"preview": "nuxi preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "nuxi typecheck",
"test": "jest"
},
"dependencies": {
Expand Down Expand Up @@ -59,7 +58,6 @@
"preserveUnused": true
},
"lint-staged": {
"*": "eslint --fix",
"**/*.{vue,ts}": "nuxi typecheck ."
"*": "nuxi typecheck && eslint --fix"
}
}

0 comments on commit d207148

Please sign in to comment.