build: enable stableTypeOrdering tsconfig flag

`stableTypeOrdering` was recently enabled in the internal builds. While there aren't any breakages in Angular, these changes enable it so we can catch potential issues earlier.
This commit is contained in:
Kristiyan Kostadinov
2026-08-23 14:37:43 +02:00
committed by Leon Senft
parent 58b0cb4735
commit c18261f3fd
10 changed files with 16 additions and 17 deletions
@@ -1,19 +1,15 @@
{
"//00": "This file is used for both IDE and the actual Project creation in Ivy language service for testing purpose",
"compilerOptions": {
"lib": [
"es2015",
"dom"
],
"stableTypeOrdering": true,
"lib": ["es2015", "dom"],
"strict": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"target": "es2015",
"baseUrl": "../../../../../",
"paths": {
"@angular/*": [
"packages/*"
]
"@angular/*": ["packages/*"]
}
},
"angularCompilerOptions": {
+4 -3
View File
@@ -10,6 +10,7 @@
"noImplicitAny": true,
"noImplicitOverride": true,
"strictNullChecks": true,
"stableTypeOrdering": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"esModuleInterop": true,
@@ -36,9 +37,9 @@
"@angular/common/locales/*": ["./common/locales/*"],
"@angular/compiler-cli": ["./compiler-cli"],
"@angular/compiler-cli/*": ["./compiler-cli/*"],
"@angular/compiler-cli/src/ngtsc/reflection": ["./compiler-cli/src/ngtsc/reflection/index"],
"@angular/compiler-cli/src/ngtsc/metadata": ["./compiler-cli/src/ngtsc/metadata/index"],
"@angular/compiler-cli/private/migrations": ["./compiler-cli/private/migrations"],
"@angular/compiler-cli/src/ngtsc/reflection": ["./compiler-cli/src/ngtsc/reflection/index"],
"@angular/compiler-cli/src/ngtsc/metadata": ["./compiler-cli/src/ngtsc/metadata/index"],
"@angular/compiler-cli/private/migrations": ["./compiler-cli/private/migrations"],
"@angular/core/schematics/utils/tsurge/*": ["./core/schematics/utils/tsurge/*"]
}
},
+1
View File
@@ -13,6 +13,7 @@
"moduleResolution": "node",
"esModuleInterop": true,
"strictNullChecks": true,
"stableTypeOrdering": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"strictPropertyInitialization": true,
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"stableTypeOrdering": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
+1
View File
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"stableTypeOrdering": true,
"module": "esnext",
"target": "es2022",
"moduleResolution": "node",