Skip to content

Commit da3018a

Browse files
chore: improved tsconfig settings
1 parent 6e2ceff commit da3018a

File tree

16 files changed

+71
-131
lines changed

16 files changed

+71
-131
lines changed

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ supportedArchitectures:
1515
- darwin
1616

1717
npmMinimalAgeGate: '7d'
18+
19+
packageExtensions:
20+
"@types/apollo-upload-client@*":
21+
peerDependencies:
22+
"@apollo/client": "*"
1823
npmPreapprovedPackages:
1924
- '@axinom/*'
2025

libs/media-messages/tsconfig.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
"strict": true,
55
"noImplicitReturns": true,
66
"noFallthroughCasesInSwitch": true,
7+
"noImplicitOverride": true,
78
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
8-
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
99
"outDir": "./dist",
1010
"resolveJsonModule": true,
11-
"target": "es2018",
11+
"target": "es2022",
1212
"module": "commonjs",
1313
"declaration": true,
1414
"removeComments": true,
1515
"sourceMap": true,
1616
"skipLibCheck": true,
17-
"baseUrl": "./",
1817
"preserveWatchOutput": true
1918
},
2019
"exclude": [
@@ -23,9 +22,5 @@
2322
"scripts",
2423
"*/tests",
2524
"**/*spec.ts"
26-
],
27-
"watchOptions": {
28-
"watchFile": "dynamicPriorityPolling",
29-
"watchDirectory": "dynamicPriorityPolling",
30-
}
25+
]
3126
}

services/catalog/service/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"noEmit": false
5+
"noEmit": false,
6+
"removeComments": true
67
},
78
"exclude": [
89
"node_modules",

services/catalog/service/tsconfig.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
"strict": true,
55
"noImplicitReturns": true,
66
"noFallthroughCasesInSwitch": true,
7+
"noImplicitOverride": true,
78
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
8-
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
99
"outDir": "./dist",
1010
"resolveJsonModule": true,
1111
"noEmit": true,
12-
"target": "es2018",
12+
"target": "es2022",
1313
"module": "commonjs",
1414
"declaration": true,
15-
"removeComments": true,
1615
"sourceMap": true,
1716
"skipLibCheck": true,
18-
"baseUrl": "./",
1917
"preserveWatchOutput": true
2018
},
2119
"exclude": [
2220
"node_modules",
2321
"dist"
24-
],
25-
"watchOptions": {
26-
"watchFile": "fixedPollingInterval"
27-
}
22+
]
2823
}

services/channel/service/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"noEmit": false
5+
"noEmit": false,
6+
"removeComments": true
67
},
78
"exclude": [
89
"node_modules",

services/channel/service/tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,18 @@
66
"noFallthroughCasesInSwitch": true,
77
"noImplicitOverride": true,
88
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
9-
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
109
"outDir": "./dist",
1110
"resolveJsonModule": true,
1211
"noEmit": true,
13-
"target": "es2018",
12+
"target": "es2022",
1413
"module": "commonjs",
1514
"declaration": true,
16-
"removeComments": true,
1715
"skipLibCheck": true,
1816
"sourceMap": true,
19-
"baseUrl": "./",
2017
"preserveWatchOutput": true
2118
},
2219
"exclude": [
2320
"node_modules",
2421
"dist"
25-
],
26-
"watchOptions": {
27-
"watchFile": "fixedPollingInterval"
28-
}
22+
]
2923
}

services/channel/workflows/tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"declaration": true,
44
"noImplicitAny": false,
55
"removeComments": false,
6-
"noLib": false,
76
"target": "es6",
87
"sourceMap": true,
98
"outDir": "./dist",
@@ -12,12 +11,12 @@
1211
"dom",
1312
"es2018"
1413
],
15-
"moduleResolution": "node",
14+
"moduleResolution": "bundler",
1615
"module": "esnext",
1716
"jsx": "react",
1817
"importHelpers": true,
1918
"strict": true,
20-
"allowSyntheticDefaultImports": true,
19+
"esModuleInterop": true,
2120
"resolveJsonModule": true
2221
},
2322
"include": [

services/entitlement/service/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"noEmit": false
5+
"noEmit": false,
6+
"removeComments": true
67
},
78
"exclude": [
89
"node_modules",

services/entitlement/service/tsconfig.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
"strict": true,
55
"noImplicitReturns": true,
66
"noFallthroughCasesInSwitch": true,
7+
"noImplicitOverride": true,
78
"esModuleInterop": true, // Needed to be able to import 'postgraphile-plugin-connection-filter'
8-
"allowSyntheticDefaultImports": true, // Needed to be able to import 'ajv' together with esModuleInterop
99
"outDir": "./dist",
1010
"resolveJsonModule": true,
1111
"noEmit": true,
12-
"target": "es2018",
12+
"target": "es2022",
1313
"module": "commonjs",
1414
"declaration": true,
15-
"removeComments": true,
1615
"sourceMap": true,
1716
"skipLibCheck": true,
18-
"baseUrl": "./",
1917
"preserveWatchOutput": true
2018
},
2119
"exclude": [
2220
"node_modules",
2321
"dist"
24-
],
25-
"watchOptions": {
26-
"watchFile": "fixedPollingInterval"
27-
}
22+
]
2823
}

services/media/service/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"noEmit": false
5+
"noEmit": false,
6+
"removeComments": true
67
},
78
"exclude": [
89
"node_modules",

0 commit comments

Comments
 (0)