Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/actions/deploy-docs-site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"types": ["node"],
"lib": ["es2021"],
"experimentalDecorators": true,
"strict": true,
"skipLibCheck": true,
"noImplicitOverride": true,
"esModuleInterop": true,
"noImplicitReturns": true,
"declaration": true,
"sourceMap": true
}
}
}
1 change: 0 additions & 1 deletion .ng-dev/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"strict": true,
"target": "es2020",
"module": "Node16",
"noEmit": true,
Expand Down
1 change: 0 additions & 1 deletion adev/scripts/synonyms/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compileOnSave": false,
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand Down
6 changes: 1 addition & 5 deletions adev/shared-docs/pipeline/examples/template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@
"noUnusedParameters": false,
"noUnusedLocals": false,
"useDefineForClassFields": false,
"strictNullChecks": true,
"noImplicitReturns": true,
"strictFunctionTypes": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictBindCallApply": true,
"esModuleInterop": true
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
}
}
5 changes: 1 addition & 4 deletions adev/shared-docs/pipeline/tutorials/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"compilerOptions": {
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand All @@ -22,8 +21,6 @@
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"_enabledBlockTypes": ["if", "for"]
"strictInputAccessModifiers": true
}
}
4 changes: 1 addition & 3 deletions adev/shared-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"strict": true,
"declaration": true,
"sourceMap": true,
"lib": ["ES2022", "dom"],
Expand All @@ -18,7 +17,6 @@
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,39 @@
/* To learn more about this file see: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
// #docregion angular-compiler-options-app
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
// #enddocregion angular-compiler-options-app
"types": []
// #docregion angular-compiler-options-app
},
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
// #enddocregion angular-compiler-options-app
"files": [
"src/main.ts"
],
"include": [
"src/**/*.d.ts"
],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts",
"src/**/*-specs.ts",
"src/**/*.avoid.ts",
"src/**/*.0.ts",
"src/**/*.1.ts",
"src/**/*.1b.ts",
"src/**/*.2.ts",
"src/**/*.3.ts",
"src/**/*.4.ts",
"src/**/*.5.ts",
"src/**/*.6.ts",
"src/**/*.7.ts",
"src/**/testing"
],
"types": []
// #docregion angular-compiler-options-app
"angularCompilerOptions": {
"strictTemplates": true,
"preserveWhitespaces": true,
// #enddocregion angular-compiler-options-app
"sourceMap": true,
"declaration": false
// #docregion angular-compiler-options-app
}
}
},
// #enddocregion angular-compiler-options-app
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts",
"src/**/*-specs.ts",
"src/**/*.avoid.ts",
"src/**/*.0.ts",
"src/**/*.1.ts",
"src/**/*.1b.ts",
"src/**/*.2.ts",
"src/**/*.3.ts",
"src/**/*.4.ts",
"src/**/*.5.ts",
"src/**/*.6.ts",
"src/**/*.7.ts",
"src/**/testing"
],
// #docregion angular-compiler-options-app
"angularCompilerOptions": {
"preserveWhitespaces": true,
// #enddocregion angular-compiler-options-app
"sourceMap": true,
"declaration": false
Comment on lines +35 to +36

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those options seem to be invalid, are they either misplaced or just plain wrong ?

// #docregion angular-compiler-options-app
}
}
// #enddocregion angular-compiler-options-app
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// #enddocregion angular-compiler-options
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand All @@ -26,8 +25,7 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
// #enddocregion angular-compiler-options
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
// #docregion angular-compiler-options
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@
"experimentalDecorators": true,
"importHelpers": true,
"types": [],
"lib": [
"dom",
"es2018"
]
"lib": ["dom", "es2018"]
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictInjectionParameters": true
},
"exclude": [
"src/test.ts",
"**/*.spec.ts"
]
"exclude": ["src/test.ts", "**/*.spec.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"lib": [
"es2018",
"dom"
],
"lib": ["es2018", "dom"],
"declaration": true,
"module": "commonjs",
"moduleResolution": "node",
Expand All @@ -19,17 +16,9 @@
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"sourceMap": true,
"strictNullChecks": true,
"target": "es6",
"types": [
"jasmine",
"node"
]
"types": ["jasmine", "node"]
},
"include": [
"schematics/**/*"
],
"exclude": [
"schematics/*/files/**/*"
]
}
"include": ["schematics/**/*"],
"exclude": ["schematics/*/files/**/*"]
}
1 change: 0 additions & 1 deletion adev/src/context/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"strict": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
Expand Down
4 changes: 1 addition & 3 deletions adev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"compilerOptions": {
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand All @@ -25,7 +24,6 @@
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
}
}
4 changes: 1 addition & 3 deletions dev-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compileOnSave": false,
"compilerOptions": {
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand All @@ -19,8 +18,7 @@
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
},
"files": [],
"references": [
Expand Down
8 changes: 5 additions & 3 deletions devtools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"sourceMap": true,
"inlineSources": true,
"declaration": true,
"strict": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"downlevelIteration": true,
Expand All @@ -22,8 +21,11 @@
}
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictInjectionParameters": true,
"unusedStandaloneImports": "error"
"extendedDiagnostics": {
"checks": {
"unusedStandaloneImports": "error"
}
}
}
}
4 changes: 1 addition & 3 deletions integration/animations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"strictTemplates": true
}
"angularCompilerOptions": {}
}
4 changes: 1 addition & 3 deletions integration/cli-hello-world/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"strictTemplates": true
}
"angularCompilerOptions": {}
}
5 changes: 1 addition & 4 deletions integration/cli-signal-inputs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "./dist/out-tsc",
"sourceMap": true,
"esModuleInterop": true,
"strict": true,
"declaration": false,
"experimentalDecorators": true,
"module": "es2022",
Expand All @@ -14,7 +13,5 @@
"typeRoots": ["node_modules/@types"],
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"strictTemplates": true
}
"angularCompilerOptions": {}
}
4 changes: 1 addition & 3 deletions integration/ng-add-localize/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
Expand All @@ -22,7 +21,6 @@
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictInputAccessModifiers": true
}
}
4 changes: 1 addition & 3 deletions integration/ng-modules-importability/index.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {performCompilation} from '@angular/compiler-cli';
import * as fs from 'fs/promises';
import * as path from 'path';
import * as os from 'os';
import * as path from 'path';
import ts from 'typescript';
import {findAllEntryPointsAndExportedModules} from './find-all-modules.mjs';

Expand Down Expand Up @@ -78,9 +78,7 @@ async function main() {
noEmit: true,
module: ts.ModuleKind.ESNext,
moduleResolution: ts.ModuleResolutionKind.Bundler,
strictTemplates: true,
preserveSymlinks: true,
strict: true,
// Note: HMR is needed as it will disable the Angular compiler's tree-shaking of used
// directives/components. This is critical for this test as it allows us to simply all
// modules and automatically validate that all symbols are reachable/importable.
Expand Down
1 change: 0 additions & 1 deletion integration/ng-modules-importability/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"strict": true,
"declaration": true,
"sourceMap": true,
"module": "esnext",
Expand Down
Loading