Skip to content

chore(tsconfig): remove default and redundant options #2824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 27, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "dist/types",
"experimentalDecorators": true,
"rootDir": "src",
"strict": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "dist/types",
"experimentalDecorators": true,
"rootDir": "src",
"strict": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"compilerOptions": {
"baseUrl": ".",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"module": "esnext",
"moduleResolution": "node",
"noUnusedLocals": true,
"outDir": "dist/es",
"rootDir": "src",
"target": "es5"
"rootDir": "src"
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"incremental": true,
"lib": ["es5", "es2015.promise", "es2015.collection", "DOM"],
"module": "esNext",
"moduleResolution": "node",
"outDir": "dist/es",
"rootDir": "src",
"stripInternal": true,
"target": "ES2015"
"stripInternal": true
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
Expand Down
6 changes: 1 addition & 5 deletions packages/signature-v4-crt/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"incremental": true,
"lib": ["es5", "es2015.promise", "es2015.collection"],
"module": "esNext",
"moduleResolution": "node",
"noUnusedLocals": true,
"outDir": "dist/es",
"rootDir": "src",
"stripInternal": true,
"target": "es5"
"stripInternal": true
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
Expand Down
6 changes: 1 addition & 5 deletions packages/signature-v4/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"incremental": true,
"lib": ["es5", "es2015.promise", "es2015.collection"],
"module": "esNext",
"moduleResolution": "node",
"noUnusedLocals": true,
"outDir": "dist/es",
"rootDir": "src",
"stripInternal": true,
"target": "es5"
"stripInternal": true
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
Expand Down
9 changes: 2 additions & 7 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"importHelpers": true,
"inlineSourceMap": true,
"inlineSources": true,
"module": "commonjs",
"moduleResolution": "node",
"noEmitHelpers": true,
"removeComments": true,
"sourceMap": false,
"strict": true,
"target": "ES2018"
"target": "ES2018",
"strict": true
}
}
9 changes: 2 additions & 7 deletions tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"downlevelIteration": true,
"importHelpers": true,
"inlineSourceMap": true,
"inlineSources": true,
"module": "esnext",
"moduleResolution": "node",
"noEmitHelpers": true,
"sourceMap": false,
"strict": true,
"target": "es5"
"target": "es5",
"strict": true
}
}
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@
"baseUrl": ".",
"downlevelIteration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"incremental": true,
"lib": ["es2015", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": false,
"paths": {
"@aws-sdk/*": ["packages/*/src"],
"@aws-sdk/client-*": ["clients/client-*/"],
"@aws-sdk/aws-*": ["protocol_tests/aws-*/"],
"@aws-sdk/lib-*": ["lib/*"]
},
"preserveConstEnums": true,
"removeComments": false,
"removeComments": true,
"resolveJsonModule": true,
"sourceMap": true,
"target": "es5"
},
"include": ["packages/", "lib/"],
Expand Down
1 change: 1 addition & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"removeComments": false,
"strict": true
}
}