diff --git a/packages/insomnia-common/tsconfig.build.json b/packages/insomnia-common/tsconfig.build.json index 25a338377..a075c5d6d 100644 --- a/packages/insomnia-common/tsconfig.build.json +++ b/packages/insomnia-common/tsconfig.build.json @@ -4,13 +4,11 @@ "composite": true, "outDir": "dist", "rootDir": "src", - "resolveJsonModule": true, - "strict": true, }, "include": [ - "src" + "src", ], "exclude": [ "**/*.test.ts", ], -} \ No newline at end of file +} diff --git a/packages/insomnia-common/tsconfig.json b/packages/insomnia-common/tsconfig.json index 8cd585731..feee2df4e 100644 --- a/packages/insomnia-common/tsconfig.json +++ b/packages/insomnia-common/tsconfig.json @@ -5,9 +5,9 @@ "rootDir": ".", }, "include": [ - "src", - "jest.config.js", ".eslintrc.js", + "jest.config.js", + "src", ], "exclude": [ "dist", diff --git a/packages/insomnia-components/tsconfig.build.json b/packages/insomnia-components/tsconfig.build.json index 9cda819f2..cbf8e559f 100644 --- a/packages/insomnia-components/tsconfig.build.json +++ b/packages/insomnia-components/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-components/tsconfig.json b/packages/insomnia-components/tsconfig.json index cc2574901..098e9a903 100644 --- a/packages/insomnia-components/tsconfig.json +++ b/packages/insomnia-components/tsconfig.json @@ -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", + ], } diff --git a/packages/insomnia-config/tsconfig.build.json b/packages/insomnia-config/tsconfig.build.json index 9f477a8b0..7d6311134 100644 --- a/packages/insomnia-config/tsconfig.build.json +++ b/packages/insomnia-config/tsconfig.build.json @@ -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", ], -} \ No newline at end of file +} diff --git a/packages/insomnia-config/tsconfig.json b/packages/insomnia-config/tsconfig.json index ae05ca9f6..a2ebe775e 100644 --- a/packages/insomnia-config/tsconfig.json +++ b/packages/insomnia-config/tsconfig.json @@ -5,10 +5,10 @@ "rootDir": ".", }, "include": [ - "src", - "jest.config.js", + "**/*.d.ts", ".eslintrc.js", - "**/*.d.ts" + "jest.config.js", + "src", ], "exclude": [ "dist", diff --git a/packages/insomnia-cookies/tsconfig.build.json b/packages/insomnia-cookies/tsconfig.build.json index a8225a501..a075c5d6d 100644 --- a/packages/insomnia-cookies/tsconfig.build.json +++ b/packages/insomnia-cookies/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-cookies/tsconfig.json b/packages/insomnia-cookies/tsconfig.json index b9f9bd556..6dee0cb75 100644 --- a/packages/insomnia-cookies/tsconfig.json +++ b/packages/insomnia-cookies/tsconfig.json @@ -2,13 +2,13 @@ "extends": "./tsconfig.build.json", "compilerOptions": { "composite": false, - "rootDir": "." + "rootDir": ".", }, "include": [ + "jest.config.js", "src", - "jest.config.js" ], "exclude": [ - "dist" - ] -} \ No newline at end of file + "dist", + ], +} diff --git a/packages/insomnia-importers/tsconfig.build.json b/packages/insomnia-importers/tsconfig.build.json index 6846b0866..24659af5a 100644 --- a/packages/insomnia-importers/tsconfig.build.json +++ b/packages/insomnia-importers/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-importers/tsconfig.json b/packages/insomnia-importers/tsconfig.json index 16f7ccc40..b3b9734f3 100644 --- a/packages/insomnia-importers/tsconfig.json +++ b/packages/insomnia-importers/tsconfig.json @@ -5,14 +5,13 @@ "rootDir": ".", }, "include": [ - "src", - "jest.config.js", ".eslintrc.js", - "package.json" - + "jest.config.js", + "package.json", + "src", ], "exclude": [ "bin", - "dist" - ] + "dist", + ], } diff --git a/packages/insomnia-inso/tsconfig.build.json b/packages/insomnia-inso/tsconfig.build.json index e1f317550..0a94a7eb1 100644 --- a/packages/insomnia-inso/tsconfig.build.json +++ b/packages/insomnia-inso/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-inso/tsconfig.json b/packages/insomnia-inso/tsconfig.json index 08d75a32b..d870a47cf 100644 --- a/packages/insomnia-inso/tsconfig.json +++ b/packages/insomnia-inso/tsconfig.json @@ -8,7 +8,7 @@ "src", ], "exclude": [ + "dist", "node_modules", - "dist" - ] + ], } diff --git a/packages/insomnia-prettify/tsconfig.build.json b/packages/insomnia-prettify/tsconfig.build.json index 854dda250..a075c5d6d 100644 --- a/packages/insomnia-prettify/tsconfig.build.json +++ b/packages/insomnia-prettify/tsconfig.build.json @@ -3,14 +3,12 @@ "compilerOptions": { "composite": true, "outDir": "dist", - "module": "CommonJS", "rootDir": "src", - "resolveJsonModule": true }, "include": [ - "src" + "src", ], "exclude": [ - "**/*.test.ts" - ] + "**/*.test.ts", + ], } diff --git a/packages/insomnia-prettify/tsconfig.json b/packages/insomnia-prettify/tsconfig.json index 93486d850..feee2df4e 100644 --- a/packages/insomnia-prettify/tsconfig.json +++ b/packages/insomnia-prettify/tsconfig.json @@ -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", + ], } diff --git a/packages/insomnia-smoke-test/tsconfig.build.json b/packages/insomnia-smoke-test/tsconfig.build.json index 7513732df..95ffaaa26 100644 --- a/packages/insomnia-smoke-test/tsconfig.build.json +++ b/packages/insomnia-smoke-test/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-smoke-test/tsconfig.json b/packages/insomnia-smoke-test/tsconfig.json index 2d83e8976..ef7920a39 100644 --- a/packages/insomnia-smoke-test/tsconfig.json +++ b/packages/insomnia-smoke-test/tsconfig.json @@ -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", + ], } diff --git a/packages/insomnia-testing/tsconfig.build.json b/packages/insomnia-testing/tsconfig.build.json index 4691a3c6f..53ed5dfb1 100644 --- a/packages/insomnia-testing/tsconfig.build.json +++ b/packages/insomnia-testing/tsconfig.build.json @@ -3,14 +3,14 @@ "compilerOptions": { "outDir": "dist", "rootDir": "src", - "types": ["node"] + "types": ["node"], }, "include": [ - "src" + "src", ], "exclude": [ + "**/*.test.ts", "**/fixtures", "**/test-helpers", - "**/*.test.ts" - ] + ], } diff --git a/packages/insomnia-testing/tsconfig.json b/packages/insomnia-testing/tsconfig.json index 561626edf..5625977b1 100644 --- a/packages/insomnia-testing/tsconfig.json +++ b/packages/insomnia-testing/tsconfig.json @@ -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", + ], } diff --git a/packages/insomnia-url/tsconfig.build.json b/packages/insomnia-url/tsconfig.build.json index eadcf3d62..a075c5d6d 100644 --- a/packages/insomnia-url/tsconfig.build.json +++ b/packages/insomnia-url/tsconfig.build.json @@ -4,13 +4,11 @@ "composite": true, "outDir": "dist", "rootDir": "src", - "module": "CommonJS", - "resolveJsonModule": true }, "include": [ - "src" + "src", ], "exclude": [ - "**/*.test.ts" - ] + "**/*.test.ts", + ], } diff --git a/packages/insomnia-url/tsconfig.json b/packages/insomnia-url/tsconfig.json index 93486d850..feee2df4e 100644 --- a/packages/insomnia-url/tsconfig.json +++ b/packages/insomnia-url/tsconfig.json @@ -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", + ], } diff --git a/packages/insomnia-xpath/tsconfig.build.json b/packages/insomnia-xpath/tsconfig.build.json index a8225a501..a075c5d6d 100644 --- a/packages/insomnia-xpath/tsconfig.build.json +++ b/packages/insomnia-xpath/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia-xpath/tsconfig.json b/packages/insomnia-xpath/tsconfig.json index 56e28e57d..01fad179f 100644 --- a/packages/insomnia-xpath/tsconfig.json +++ b/packages/insomnia-xpath/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "./tsconfig.build.json", "compilerOptions": { - "rootDir": "." + "rootDir": ".", }, "include": [ + "jest.config.js", "src", - "jest.config.js" ], "exclude": [ - "dist" - ] -} \ No newline at end of file + "dist", + ], +} diff --git a/packages/insomnia/tsconfig.build.json b/packages/insomnia/tsconfig.build.json index e9d00ad56..9a6d589fa 100644 --- a/packages/insomnia/tsconfig.build.json +++ b/packages/insomnia/tsconfig.build.json @@ -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", + ], } diff --git a/packages/insomnia/tsconfig.build.sr.json b/packages/insomnia/tsconfig.build.sr.json index ecbf0dabb..00bd07348 100644 --- a/packages/insomnia/tsconfig.build.sr.json +++ b/packages/insomnia/tsconfig.build.sr.json @@ -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", + ], } diff --git a/packages/insomnia/tsconfig.json b/packages/insomnia/tsconfig.json index 231e5b51b..19a891805 100644 --- a/packages/insomnia/tsconfig.json +++ b/packages/insomnia/tsconfig.json @@ -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" - ] + ], } diff --git a/packages/openapi-2-kong/tsconfig.build.json b/packages/openapi-2-kong/tsconfig.build.json index 29d7a4a2f..375afd781 100644 --- a/packages/openapi-2-kong/tsconfig.build.json +++ b/packages/openapi-2-kong/tsconfig.build.json @@ -4,14 +4,12 @@ "composite": true, "outDir": "dist", "rootDir": "src", - "resolveJsonModule": true, - "strict": true }, "include": [ - "src" + "src", ], "exclude": [ "**/*.test.ts", - "jest" - ] -} \ No newline at end of file + "jest", + ], +} diff --git a/packages/openapi-2-kong/tsconfig.json b/packages/openapi-2-kong/tsconfig.json index 43bc835b0..feee2df4e 100644 --- a/packages/openapi-2-kong/tsconfig.json +++ b/packages/openapi-2-kong/tsconfig.json @@ -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" - ] -} \ No newline at end of file + "dist", + ], +} diff --git a/plugins/insomnia-plugin-kong-portal/tsconfig.build.json b/plugins/insomnia-plugin-kong-portal/tsconfig.build.json index df0fadea7..c9af7f6d0 100644 --- a/plugins/insomnia-plugin-kong-portal/tsconfig.build.json +++ b/plugins/insomnia-plugin-kong-portal/tsconfig.build.json @@ -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"], } diff --git a/plugins/insomnia-plugin-kong-portal/tsconfig.json b/plugins/insomnia-plugin-kong-portal/tsconfig.json index 0d2b188ca..22d9cd8ac 100644 --- a/plugins/insomnia-plugin-kong-portal/tsconfig.json +++ b/plugins/insomnia-plugin-kong-portal/tsconfig.json @@ -4,10 +4,10 @@ "rootDir": ".", }, "include": [ - "src", ".eslintrc.js", - "package.json", "esbuild.ts", + "package.json", + "src", ], "exclude": [ "dist", diff --git a/scripts/changelog-image/tsconfig.json b/scripts/changelog-image/tsconfig.json index 9536a0f41..96a27d9cc 100644 --- a/scripts/changelog-image/tsconfig.json +++ b/scripts/changelog-image/tsconfig.json @@ -1,3 +1,3 @@ { - "extends": "../../tsconfig.base.json" + "extends": "../../tsconfig.base.json", } diff --git a/tsconfig.base.json b/tsconfig.base.json index 195dff3b6..e376a4320 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -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, + }, } diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index f1ffc6415..a4887a36d 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -2,6 +2,6 @@ "extends": "./tsconfig.base.json", "include": [ ".eslintrc.js", - "jest-preset.js" - ] -} \ No newline at end of file + "jest-preset.js", + ], +}