From ba1a7871a008b33e61dbc8210997e690793f04bd Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 2 Sep 2025 20:13:41 -0500 Subject: [PATCH] Simplify tsconfig --- package.json | 2 +- tsconfig.app.json | 31 ------------------------------- tsconfig.json | 38 +++++++++++++++++++++++++------------- tsconfig.node.json | 22 ---------------------- 4 files changed, 26 insertions(+), 67 deletions(-) delete mode 100644 tsconfig.app.json delete mode 100644 tsconfig.node.json diff --git a/package.json b/package.json index 98f7eb5..0ad7d9b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "npm i && vite", "build": "npm i && vite build && cp dist/index.html dist/404.html", - "test": "npm i && tsc -p tsconfig.app.json --noEmit && eslint && vitest run && vite build", + "test": "npm i && tsc --noEmit && eslint && vitest run && vite build", "deploy": "npm run build && npx -y nostr-deploy-cli deploy --skip-setup" }, "dependencies": { diff --git a/tsconfig.app.json b/tsconfig.app.json deleted file mode 100644 index 26ef794..0000000 --- a/tsconfig.app.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "module": "ESNext", - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "isolatedModules": true, - "moduleDetection": "force", - "noEmit": true, - "jsx": "react-jsx", - - /* Linting */ - "strict": false, - "strictNullChecks": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noImplicitAny": false, - "noFallthroughCasesInSwitch": false, - - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["src"] -} diff --git a/tsconfig.json b/tsconfig.json index 2ea8a61..26ef794 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,31 @@ { - "files": [], - "references": [ - { "path": "./tsconfig.app.json" }, - { "path": "./tsconfig.node.json" } - ], "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": false, + "strictNullChecks": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitAny": false, + "noFallthroughCasesInSwitch": false, + "baseUrl": ".", "paths": { "@/*": ["./src/*"] - }, - "noImplicitAny": false, - "noUnusedParameters": false, - "skipLibCheck": true, - "allowJs": true, - "noUnusedLocals": false, - "strictNullChecks": true - } + } + }, + "include": ["src"] } diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index 3133162..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2022", - "lib": ["ES2023"], - "module": "ESNext", - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "isolatedModules": true, - "moduleDetection": "force", - "noEmit": true, - - /* Linting */ - "strict": true, - "noUnusedLocals": false, - "noUnusedParameters": false, - "noFallthroughCasesInSwitch": true - }, - "include": ["vite.config.ts"] -}