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,
"outDir": "dist",
"rootDir": "src",
"resolveJsonModule": true,
"strict": true,
},
"include": [
"src"
"src",
],
"exclude": [
"**/*.test.ts",
],
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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