forked from Hammanek/AutoAFK
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): use the solution tsconfig pattern
Type checking is currently not evaluated for referenced files. In order to make it evaluate, we have to use `--build`. However, this cannot be used with `--noEmit` and so will emit compiled files unless we use the solution tsconfig pattern. See - microsoft/TypeScript#53979 - vitejs/vite#15913 See also - https://www.typescriptlang.org/docs/handbook/project-references.html#overall-structure - vitejs/vite#17774
- Loading branch information
Showing
4 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2021", | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2021", "DOM", "DOM.Iterable"], | ||
"module": "commonjs", | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
|
||
/* Bundler mode */ | ||
"moduleResolution": "node", | ||
// "allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
// "isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
// https://github.com/emotion-js/emotion/issues/1249#issuecomment-828088254 | ||
"jsxImportSource": "@emotion/react", | ||
"types": ["vitest/globals"], | ||
|
||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"include": ["src/**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES2021", | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2021", "DOM", "DOM.Iterable"], | ||
"module": "commonjs", | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"sourceMap": true, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
|
||
/* Bundler mode */ | ||
"moduleResolution": "node", | ||
// "allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
// "isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
// https://github.com/emotion-js/emotion/issues/1249#issuecomment-828088254 | ||
"jsxImportSource": "@emotion/react", | ||
"types": ["vitest/globals"], | ||
|
||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"include": ["src"], | ||
"references": [{ "path": "./tsconfig.node.json" }] | ||
"files": [], | ||
"references": [ | ||
{ "path": "./tsconfig.app.json" }, | ||
{ "path": "./tsconfig.node.json" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters