Skip to content

Commit

Permalink
DEVPROD-5149: Combine TSConfig (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Mar 27, 2024
1 parent c8332c7 commit b284d4d
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 70 deletions.
1 change: 0 additions & 1 deletion .evergreen/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,3 @@ tasks:
commands:
- func: symlink
- func: yarn-tsc

2 changes: 1 addition & 1 deletion apps/parsley/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@types/js-cookie": "3.0.4",
"@types/lodash.debounce": "4.0.7",
"@types/new-relic-browser": "1.230.2",
"@types/node": "16.11.47",
"@types/node": "^20.11.30",
"@types/pluralize": "0.0.31",
"@types/prompts": "2.4.4",
"@types/react": "18.0.15",
Expand Down
28 changes: 4 additions & 24 deletions apps/parsley/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react", // enables css prop on JSX
"baseUrl": "src",
"noFallthroughCasesInSwitch": true,
"baseUrl": "src"
},
"include": [
"src",
"config/jest/setup.ts",
"config/jest/setup.ts"
],
"exclude": [
"node_modules",
Expand All @@ -37,4 +17,4 @@
"path": "./tsconfig.node.json"
}
]
}
}
2 changes: 1 addition & 1 deletion apps/parsley/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"vite.config.ts",
"config/injectVariablesInHTML.ts"
]
}
}
2 changes: 1 addition & 1 deletion apps/spruce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"@types/lodash.debounce": "4.0.7",
"@types/lodash.throttle": "^4.1.9",
"@types/new-relic-browser": "0.1212.2",
"@types/node": "^16.11.47",
"@types/node": "^20.11.30",
"@types/pluralize": "0.0.33",
"@types/prompts": "2.4.9",
"@types/react": "18.2.0",
Expand Down
38 changes: 4 additions & 34 deletions apps/spruce/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"plugins": [
{
"name": "@styled/typescript-styled-plugin"
}
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": false,
"module": "CommonJS",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"types": [
"node",
"jest",
"@testing-library/jest-dom",
"new-relic-browser"
],
"baseUrl": "src",
"noFallthroughCasesInSwitch": true,
"strict": false
},
"exclude": [
"node_modules",
Expand All @@ -41,8 +11,8 @@
"include": [
"src",
"test_utils/index.tsx",
"test_utils/custom-queries.ts",
"config/jest/setupTests.ts",
"test_utils/custom-queries.ts",
"config/jest/setupTests.ts"
],
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/spruce/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"vite.config.ts",
"config/injectVariablesInHTML.ts"
]
}
}
24 changes: 24 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"noFallthroughCasesInSwitch": true,
"strict": true
}
}
9 changes: 2 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6539,24 +6539,19 @@
"@types/node" "*"
form-data "^4.0.0"

"@types/node@*":
"@types/node@*", "@types/node@^20.11.30":
version "20.11.30"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.11.30.tgz#9c33467fc23167a347e73834f788f4b9f399d66f"
integrity sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==
dependencies:
undici-types "~5.26.4"

"@types/[email protected]":
version "16.11.47"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.47.tgz#efa9e3e0f72e7aa6a138055dace7437a83d9f91c"
integrity sha512-fpP+jk2zJ4VW66+wAMFoBJlx1bxmBKx4DUFf68UHgdGCOuyUTDlLWqsaNPJh7xhNDykyJ9eIzAygilP/4WoN8g==

"@types/node@^14.14.31":
version "14.18.63"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b"
integrity sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==

"@types/node@^16.0.0", "@types/node@^16.11.47":
"@types/node@^16.0.0":
version "16.18.91"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.91.tgz#3e7b3b3d28f740e3e2d4ceb7ad9d16e6b9277c91"
integrity sha512-h8Q4klc8xzc9kJKr7UYNtJde5TU2qEePVyH3WyzJaUC+3ptyc5kPQbWOIUcn8ZsG5+KSkq+P0py0kC0VqxgAXw==
Expand Down

0 comments on commit b284d4d

Please sign in to comment.