tsconfig cleanup (#4908)

This commit is contained in:
Dimitri Mitropoulos 2022-06-27 12:57:50 -04:00 committed by GitHub
parent bbceb6097c
commit ed3aad6046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 142 additions and 165 deletions

View File

@ -4,13 +4,11 @@
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true,
"strict": true,
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts", "**/*.test.ts",
], ],
} }

View File

@ -5,9 +5,9 @@
"rootDir": ".", "rootDir": ".",
}, },
"include": [ "include": [
"src",
"jest.config.js",
".eslintrc.js", ".eslintrc.js",
"jest.config.js",
"src",
], ],
"exclude": [ "exclude": [
"dist", "dist",

View File

@ -2,14 +2,13 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"emitDeclarationOnly": true,
"experimentalDecorators": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["DOM"],
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"jsx": "react",
"isolatedModules": true,
"lib": ["DOM"],
"experimentalDecorators": true,
"emitDeclarationOnly": true,
"resolveJsonModule": true
}, },
"include": [ "include": [
"src" "src"
@ -17,6 +16,6 @@
"exclude": [ "exclude": [
"**/*.test.ts", "**/*.test.ts",
"**/*.test.tsx", "**/*.test.tsx",
"src/jest" "src/jest",
] ],
} }

View File

@ -4,13 +4,13 @@
"rootDir": "." "rootDir": "."
}, },
"include": [ "include": [
"src",
"jest.config.js",
".eslintrc.js", ".eslintrc.js",
"jest.config.js",
"src",
"svgr.config.js",
"vite.config.ts", "vite.config.ts",
"svgr.config.js"
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -4,16 +4,14 @@
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true,
"strict": true,
}, },
"include": [ "include": [
"src", "**/*.d.ts",
"**/*.schema.json", "**/*.schema.json",
"**/*.d.ts" "src",
], ],
"exclude": [ "exclude": [
"dist",
"**/*.test.ts", "**/*.test.ts",
"dist",
], ],
} }

View File

@ -5,10 +5,10 @@
"rootDir": ".", "rootDir": ".",
}, },
"include": [ "include": [
"src", "**/*.d.ts",
"jest.config.js",
".eslintrc.js", ".eslintrc.js",
"**/*.d.ts" "jest.config.js",
"src",
], ],
"exclude": [ "exclude": [
"dist", "dist",

View File

@ -2,15 +2,13 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"module": "CommonJS",
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts" "**/*.test.ts",
] ],
} }

View File

@ -2,13 +2,13 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": false, "composite": false,
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"jest.config.js",
"src", "src",
"jest.config.js"
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -2,18 +2,17 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"lib": ["ES2019"],
"outDir": "dist", "outDir": "dist",
"rootDir": ".", "rootDir": ".",
"lib": ["ES2019"],
"resolveJsonModule": true
}, },
"include": [ "include": [
"package.json",
"src", "src",
"package.json"
], ],
"exclude": [ "exclude": [
"**/*.test.ts", "**/*.test.ts",
"bin", "bin",
"dist" "dist",
] ],
} }

View File

@ -5,14 +5,13 @@
"rootDir": ".", "rootDir": ".",
}, },
"include": [ "include": [
"src",
"jest.config.js",
".eslintrc.js", ".eslintrc.js",
"package.json" "jest.config.js",
"package.json",
"src",
], ],
"exclude": [ "exclude": [
"bin", "bin",
"dist" "dist",
] ],
} }

View File

@ -2,25 +2,24 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"src", "**/*.d.ts",
"package.json", "package.json",
"**/*.d.ts" "src",
], ],
"exclude": [ "exclude": [
"node_modules",
"dist",
"src/jest",
"jest.config.js",
"bin",
"assets",
"scripts",
"**/@types/mocha",
"**/*.test.ts", "**/*.test.ts",
"**/@types/mocha",
"**/__mocks__/*",
"**/__snapshots__/**", "**/__snapshots__/**",
"**/__mocks__/*" "assets",
] "bin",
"dist",
"jest.config.js",
"node_modules",
"scripts",
"src/jest",
],
} }

View File

@ -8,7 +8,7 @@
"src", "src",
], ],
"exclude": [ "exclude": [
"dist",
"node_modules", "node_modules",
"dist" ],
]
} }

View File

@ -3,14 +3,12 @@
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"module": "CommonJS",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts" "**/*.test.ts",
] ],
} }

View File

@ -2,14 +2,14 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": false, "composite": false,
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"src", ".eslintrc.js",
"jest.config.js", "jest.config.js",
".eslintrc.js" "src",
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -4,19 +4,17 @@
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"rootDir": ".", "rootDir": ".",
"resolveJsonModule": true,
"esModuleInterop": true
}, },
"include": [ "include": [
"**/*.d.ts",
"cli", "cli",
"core", "core",
"fixtures", "fixtures",
"modules", "modules",
"server", "server",
"**/*.d.ts",
], ],
"exclude": [ "exclude": [
"dist",
"**/*.test.ts", "**/*.test.ts",
] "dist",
],
} }

View File

@ -2,21 +2,21 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": false, "composite": false,
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"**/*.d.ts",
".eslintrc.js",
"__jest__", "__jest__",
"tests",
"cli", "cli",
"fixtures", "fixtures",
"playwright.config.ts",
"playwright",
"server",
"jest.config.js", "jest.config.js",
".eslintrc.js", "playwright",
"**/*.d.ts", "playwright.config.ts",
"server",
"tests",
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -3,14 +3,14 @@
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"types": ["node"] "types": ["node"],
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts",
"**/fixtures", "**/fixtures",
"**/test-helpers", "**/test-helpers",
"**/*.test.ts" ],
]
} }

View File

@ -1,14 +1,14 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"src",
".eslintrc.js", ".eslintrc.js",
"jest.config.js" "jest.config.js",
"src",
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -4,13 +4,11 @@
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"module": "CommonJS",
"resolveJsonModule": true
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts" "**/*.test.ts",
] ],
} }

View File

@ -2,14 +2,14 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": false, "composite": false,
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"src", ".eslintrc.js",
"jest.config.js", "jest.config.js",
".eslintrc.js" "src",
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -2,15 +2,13 @@
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
"module": "CommonJS",
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts" "**/*.test.ts",
] ],
} }

View File

@ -1,13 +1,13 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"jest.config.js",
"src", "src",
"jest.config.js"
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -1,21 +1,20 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true,
"isolatedModules": true,
"jsx": "react",
"outDir": "./build", "outDir": "./build",
"rootDir": ".", "rootDir": ".",
"resolveJsonModule": true,
"isolatedModules": true,
"strictNullChecks": true,
"jsx": "react",
"experimentalDecorators": true,
"skipLibCheck": true, "skipLibCheck": true,
"strictNullChecks": true,
"types": ["node", "vite/client"], "types": ["node", "vite/client"],
}, },
"include": [ "include": [
"**/*.d.ts", "**/*.d.ts",
"src",
"**/insomnia.config.json", "**/insomnia.config.json",
"package.json" "package.json",
"src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts", "**/*.test.ts",
@ -26,12 +25,12 @@
"**/__snapshots__", "**/__snapshots__",
"**/__tests__", "**/__tests__",
"**/main.min.js", "**/main.min.js",
"src/coverage",
"__jest__", "__jest__",
"assets", "assets",
"bin", "bin",
"config", "config",
"jest.config.js", "jest.config.js",
"node_modules", "node_modules",
] "src/coverage",
],
} }

View File

@ -1,12 +1,12 @@
{ {
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../insomnia-send-request/dist",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"outDir": "../insomnia-send-request/dist",
}, },
"include": [ "include": [
"**/*.d.ts", "**/*.d.ts",
"package.json", "package.json",
"send-request" "send-request",
] ],
} }

View File

@ -2,10 +2,9 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"include": [ "include": [
"**/insomnia.config.json", "**/insomnia.config.json",
"electron-builder.config.js",
".eslintrc.js", ".eslintrc.js",
"src",
"config", "config",
"electron-builder.config.js",
"esbuild.main.ts", "esbuild.main.ts",
"esbuild.preload.ts", "esbuild.preload.ts",
"esbuild.sr.ts", "esbuild.sr.ts",
@ -13,7 +12,8 @@
"package.json", "package.json",
"scripts", "scripts",
"send-request", "send-request",
"vite.config.ts" "src",
"vite.config.ts",
], ],
"exclude": [ "exclude": [
"**/@types/mocha", "**/@types/mocha",
@ -21,7 +21,7 @@
"bin", "bin",
"build", "build",
"config", "config",
"node_modules",
"src/coverage", "src/coverage",
"node_modules" ],
]
} }

View File

@ -4,14 +4,12 @@
"composite": true, "composite": true,
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true,
"strict": true
}, },
"include": [ "include": [
"src" "src",
], ],
"exclude": [ "exclude": [
"**/*.test.ts", "**/*.test.ts",
"jest" "jest",
] ],
} }

View File

@ -2,14 +2,14 @@
"extends": "./tsconfig.build.json", "extends": "./tsconfig.build.json",
"compilerOptions": { "compilerOptions": {
"composite": false, "composite": false,
"rootDir": "." "rootDir": ".",
}, },
"include": [ "include": [
"src", ".eslintrc.js",
"jest.config.js", "jest.config.js",
".eslintrc.js" "src",
], ],
"exclude": [ "exclude": [
"dist" "dist",
] ],
} }

View File

@ -1,15 +1,13 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"emitDeclarationOnly": true,
"isolatedModules": false,
"jsx": "react",
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"resolveJsonModule": true,
"strict": true,
"jsx": "react",
"isolatedModules": false,
"emitDeclarationOnly": true,
"sourceMap": false,
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": false,
}, },
"include": ["src"] "include": ["src"],
} }

View File

@ -4,10 +4,10 @@
"rootDir": ".", "rootDir": ".",
}, },
"include": [ "include": [
"src",
".eslintrc.js", ".eslintrc.js",
"package.json",
"esbuild.ts", "esbuild.ts",
"package.json",
"src",
], ],
"exclude": [ "exclude": [
"dist", "dist",

View File

@ -1,3 +1,3 @@
{ {
"extends": "../../tsconfig.base.json" "extends": "../../tsconfig.base.json",
} }

View File

@ -1,16 +1,15 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"allowUnreachableCode": false, "allowUnreachableCode": false,
"allowUnusedLabels": false, "allowUnusedLabels": false,
"useUnknownInCatchVariables": false,
"allowJs": true,
"checkJs": true, "checkJs": true,
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"esModuleInterop": true, "esModuleInterop": true,
"lib": ["DOM", "ES2019"], "lib": ["DOM", "ES2019"],
"module": "commonjs", "module": "CommonJS",
"moduleResolution": "node", "moduleResolution": "node",
"noImplicitReturns": true, "noImplicitReturns": true,
"noUnusedLocals": true, "noUnusedLocals": true,
@ -20,6 +19,7 @@
"sourceMap": true, "sourceMap": true,
"strict": true, "strict": true,
"target": "ES2019", "target": "ES2019",
"types": ["node"] "types": ["node"],
} "useUnknownInCatchVariables": false,
},
} }

View File

@ -2,6 +2,6 @@
"extends": "./tsconfig.base.json", "extends": "./tsconfig.base.json",
"include": [ "include": [
".eslintrc.js", ".eslintrc.js",
"jest-preset.js" "jest-preset.js",
] ],
} }