Skip to content

Commit

Permalink
feat: add typecheck on lint-staged and build-time only #368
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Sep 25, 2024
1 parent 3208afe commit 7dd479e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import vuetify from 'vite-plugin-vuetify'
import checker from 'vite-plugin-checker'

import { vidos } from './lib/config'
import { configuredApi, configuredImageProxy } from './utils/vido-config-static'

Expand Down Expand Up @@ -97,10 +95,9 @@ export default defineNuxtConfig({
host: '0.0.0.0',
},
typescript: {
typeCheck: !process.env.CYPRESS,
typeCheck: 'build',
},
vite: {
optimizeDeps: { exclude: ['fsevents'] },
plugins: [!process.env.CYPRESS ? checker({ vueTsc: true }) : undefined],
optimizeDeps: { exclude: ['fsevents'] }

Check failure on line 101 in nuxt.config.ts

View workflow job for this annotation

GitHub Actions / Lint code base (ubuntu-latest, 20)

Missing trailing comma
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@
},
"lint-staged": {
"*.{css,scss,vue}": "stylelint",
"*.{js,jsx,ts,tsx,vue}": "eslint"
"*.{js,jsx,ts,tsx,vue}": "nuxi typecheck && eslint"
}
}

0 comments on commit 7dd479e

Please sign in to comment.