[Maintenance] Add tsconfig excludes (#2380)

* Add tsconfig excludes

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2024-02-20 13:11:14 -08:00
committed by GitHub
parent 45c4b262a2
commit e526555748
2 changed files with 32 additions and 6 deletions

View File

@@ -7,7 +7,11 @@
"compilerOptions": {
// "composite": true,
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"lib": [
"ES2022",
"DOM",
"DOM.Iterable"
],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
@@ -19,7 +23,10 @@
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"jsx": "preserve",
"types": ["vite/client", "jest"],
"types": [
"vite/client",
"jest"
],
// Check JS files too
"allowJs": true,
"checkJs": false,
@@ -31,17 +38,30 @@
"noEmit": true,
"paths": {
// until we turn on composite/references
"loot-core/*": ["./packages/loot-core/src/*"],
"loot-core/*": [
"./packages/loot-core/src/*"
],
},
"plugins": [
{
"name": "typescript-strict-plugin",
"path": ["./packages"]
"path": [
"./packages"
]
}
]
},
"include": ["packages/**/*"],
"exclude": ["**/node_modules/*", "**/build/*", "**/lib-dist/*"],
"include": [
"packages/**/*"
],
"exclude": [
"node_modules",
"**/node_modules/*",
"**/build/*",
"**/client-build/*",
"**/dist/*",
"**/lib-dist/*"
],
"ts-node": {
"compilerOptions": {
"module": "CommonJS"

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [joel-jeremy]
---
Excludes folders in tsconfig to fix VS Code "Configure Excludes" warning.