Skip to content

A local-first personal finance app

[Maintenance] Add tsconfig excludes (#2380)

Joel Jeremy Marqueze5265557481d
diff --git a/tsconfig.json b/tsconfig.json
index 2ef182ad76..d7a3fae83d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -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"
diff --git a/upcoming-release-notes/2380.md b/upcoming-release-notes/2380.md
new file mode 100644
index 0000000000..4816bd4077
--- /dev/null
+++ b/upcoming-release-notes/2380.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [joel-jeremy]
+---
+
+Excludes folders in tsconfig to fix VS Code "Configure Excludes" warning.