Skip to content

Commit

Permalink
Add 'lint' script to package.json
Browse files Browse the repository at this point in the history
- 'vue-tsc' uses '--build' because we are using 'references' in
  tsconfig.json.
- 'vue-tsc' doesn't use '--noEmit' because it is incompatible with
  '--build'. Instead we set 'noEmit' to 'true' in the referenced
  tsconfig.json files.
- 'vue-tsc' uses '--force' to make check-only builds more reliable (see
  vuejs/create-vue#274).
  • Loading branch information
kirillgashkov committed Feb 27, 2024
1 parent d5daeb8 commit adf88dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"lint": "vue-tsc --build --force"
},
"devDependencies": {
"@types/node": "^20.11.20",
Expand Down

0 comments on commit adf88dc

Please sign in to comment.