mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Leon Senft
parent
58b0cb4735
commit
c18261f3fd
@@ -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": {
|
||||
|
||||
@@ -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/*"]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"stableTypeOrdering": true,
|
||||
"module": "esnext",
|
||||
"target": "es2022",
|
||||
"moduleResolution": "node",
|
||||
|
||||
Reference in New Issue
Block a user