Skip to content

Commit af66109

Browse files
committed
fix(build): add flag to tsc to ignore warnings
tsc will throw errors that are reported by warnings as eslint. To ignore all errors except critical ones, I added the --noCheck flag. More context here: microsoft/TypeScript#29651
1 parent 4526fc0 commit af66109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite --host",
8-
"build": "tsc -b && vite build",
8+
"build": "tsc -b --noCheck && vite build",
99
"preview": "vite preview --host",
1010
"lint": "eslint --fix --no-error-on-unmatched-pattern ./src/**/*.{ts,tsx}",
1111
"format": "prettier --write \"./src/**/*.+(tsx|ts|json|html|css)\"",

0 commit comments

Comments
 (0)