Skip to content

Commit 9cf7b44

Browse files
JeanMechemattrbeck
authored andcommitted
build: remove explicit strict options
Those options are enabled by default, they don't need to be explicit.
1 parent acdac1c commit 9cf7b44

46 files changed

Lines changed: 66 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/deploy-docs-site/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"types": ["node"],
66
"lib": ["es2021"],
77
"experimentalDecorators": true,
8-
"strict": true,
98
"skipLibCheck": true,
109
"noImplicitOverride": true,
1110
"esModuleInterop": true,
1211
"noImplicitReturns": true,
1312
"declaration": true,
1413
"sourceMap": true
1514
}
16-
}
15+
}

.ng-dev/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
"strict": true,
43
"target": "es2020",
54
"module": "Node16",
65
"noEmit": true,

adev/scripts/synonyms/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compileOnSave": false,
33
"compilerOptions": {
44
"forceConsistentCasingInFileNames": true,
5-
"strict": true,
65
"noImplicitOverride": true,
76
"noPropertyAccessFromIndexSignature": true,
87
"noImplicitReturns": true,

adev/shared-docs/pipeline/examples/template/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,16 @@
1616
"noUnusedParameters": false,
1717
"noUnusedLocals": false,
1818
"useDefineForClassFields": false,
19-
"strictNullChecks": true,
2019
"noImplicitReturns": true,
21-
"strictFunctionTypes": true,
2220
"noImplicitOverride": true,
2321
"noFallthroughCasesInSwitch": true,
2422
"noImplicitAny": true,
2523
"noImplicitThis": true,
26-
"strictBindCallApply": true,
2724
"esModuleInterop": true
2825
},
2926
"angularCompilerOptions": {
3027
"enableI18nLegacyMessageIdFormat": false,
3128
"strictInjectionParameters": true,
32-
"strictInputAccessModifiers": true,
33-
"strictTemplates": true
29+
"strictInputAccessModifiers": true
3430
}
3531
}

adev/shared-docs/pipeline/tutorials/common/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"compilerOptions": {
55
"outDir": "./dist/out-tsc",
66
"forceConsistentCasingInFileNames": true,
7-
"strict": true,
87
"noImplicitOverride": true,
98
"noPropertyAccessFromIndexSignature": true,
109
"noImplicitReturns": true,
@@ -22,8 +21,6 @@
2221
"angularCompilerOptions": {
2322
"enableI18nLegacyMessageIdFormat": false,
2423
"strictInjectionParameters": true,
25-
"strictInputAccessModifiers": true,
26-
"strictTemplates": true,
27-
"_enabledBlockTypes": ["if", "for"]
24+
"strictInputAccessModifiers": true
2825
}
2926
}

adev/shared-docs/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"module": "ESNext",
55
"skipLibCheck": true,
66
"moduleResolution": "bundler",
7-
"strict": true,
87
"declaration": true,
98
"sourceMap": true,
109
"lib": ["ES2022", "dom"],
@@ -18,7 +17,6 @@
1817
},
1918
"angularCompilerOptions": {
2019
"strictInjectionParameters": true,
21-
"strictInputAccessModifiers": true,
22-
"strictTemplates": true
20+
"strictInputAccessModifiers": true
2321
}
2422
}

adev/src/content/examples/angular-compiler-options/tsconfig.app.json

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,39 @@
22
/* To learn more about this file see: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
33
// #docregion angular-compiler-options-app
44
{
5-
"extends": "./tsconfig.json",
6-
"compilerOptions": {
7-
"outDir": "./out-tsc/app",
8-
// #enddocregion angular-compiler-options-app
9-
"types": []
10-
// #docregion angular-compiler-options-app
11-
},
5+
"extends": "./tsconfig.json",
6+
"compilerOptions": {
7+
"outDir": "./out-tsc/app",
128
// #enddocregion angular-compiler-options-app
13-
"files": [
14-
"src/main.ts"
15-
],
16-
"include": [
17-
"src/**/*.d.ts"
18-
],
19-
"exclude": [
20-
"src/test.ts",
21-
"src/**/*.spec.ts",
22-
"src/**/*-specs.ts",
23-
"src/**/*.avoid.ts",
24-
"src/**/*.0.ts",
25-
"src/**/*.1.ts",
26-
"src/**/*.1b.ts",
27-
"src/**/*.2.ts",
28-
"src/**/*.3.ts",
29-
"src/**/*.4.ts",
30-
"src/**/*.5.ts",
31-
"src/**/*.6.ts",
32-
"src/**/*.7.ts",
33-
"src/**/testing"
34-
],
9+
"types": []
3510
// #docregion angular-compiler-options-app
36-
"angularCompilerOptions": {
37-
"strictTemplates": true,
38-
"preserveWhitespaces": true,
39-
// #enddocregion angular-compiler-options-app
40-
"sourceMap": true,
41-
"declaration": false
42-
// #docregion angular-compiler-options-app
43-
}
44-
}
11+
},
4512
// #enddocregion angular-compiler-options-app
13+
"files": ["src/main.ts"],
14+
"include": ["src/**/*.d.ts"],
15+
"exclude": [
16+
"src/test.ts",
17+
"src/**/*.spec.ts",
18+
"src/**/*-specs.ts",
19+
"src/**/*.avoid.ts",
20+
"src/**/*.0.ts",
21+
"src/**/*.1.ts",
22+
"src/**/*.1b.ts",
23+
"src/**/*.2.ts",
24+
"src/**/*.3.ts",
25+
"src/**/*.4.ts",
26+
"src/**/*.5.ts",
27+
"src/**/*.6.ts",
28+
"src/**/*.7.ts",
29+
"src/**/testing"
30+
],
31+
// #docregion angular-compiler-options-app
32+
"angularCompilerOptions": {
33+
"preserveWhitespaces": true,
34+
// #enddocregion angular-compiler-options-app
35+
"sourceMap": true,
36+
"declaration": false
37+
// #docregion angular-compiler-options-app
38+
}
39+
}
40+
// #enddocregion angular-compiler-options-app

adev/src/content/examples/angular-compiler-options/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// #enddocregion angular-compiler-options
88
"outDir": "./dist/out-tsc",
99
"forceConsistentCasingInFileNames": true,
10-
"strict": true,
1110
"noImplicitOverride": true,
1211
"noPropertyAccessFromIndexSignature": true,
1312
"noImplicitReturns": true,
@@ -26,8 +25,7 @@
2625
"enableI18nLegacyMessageIdFormat": false,
2726
"strictInjectionParameters": true,
2827
// #enddocregion angular-compiler-options
29-
"strictInputAccessModifiers": true,
30-
"strictTemplates": true
28+
"strictInputAccessModifiers": true
3129
// #docregion angular-compiler-options
3230
}
3331
}

adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.lib.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@
1111
"experimentalDecorators": true,
1212
"importHelpers": true,
1313
"types": [],
14-
"lib": [
15-
"dom",
16-
"es2018"
17-
]
14+
"lib": ["dom", "es2018"]
1815
},
1916
"angularCompilerOptions": {
20-
"strictTemplates": true,
2117
"strictInjectionParameters": true
2218
},
23-
"exclude": [
24-
"src/test.ts",
25-
"**/*.spec.ts"
26-
]
19+
"exclude": ["src/test.ts", "**/*.spec.ts"]
2720
}
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4-
"lib": [
5-
"es2018",
6-
"dom"
7-
],
4+
"lib": ["es2018", "dom"],
85
"declaration": true,
96
"module": "commonjs",
107
"moduleResolution": "node",
@@ -19,17 +16,9 @@
1916
"skipDefaultLibCheck": true,
2017
"skipLibCheck": true,
2118
"sourceMap": true,
22-
"strictNullChecks": true,
2319
"target": "es6",
24-
"types": [
25-
"jasmine",
26-
"node"
27-
]
20+
"types": ["jasmine", "node"]
2821
},
29-
"include": [
30-
"schematics/**/*"
31-
],
32-
"exclude": [
33-
"schematics/*/files/**/*"
34-
]
35-
}
22+
"include": ["schematics/**/*"],
23+
"exclude": ["schematics/*/files/**/*"]
24+
}

0 commit comments

Comments
 (0)