-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tsconfig): add support for ts 4.6 and ng14
Angular 14 now use TS 4.6 and request the build target `ES2020`
- Loading branch information
Showing
15 changed files
with
294 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h1 align="center"> | ||
code style - TypeScript 4.5.x | ||
</h1> | ||
|
||
## About | ||
|
||
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.5.x. | ||
|
||
## Usage | ||
|
||
Adapt the content of your `tsconfig.json` file as follows: | ||
|
||
```text | ||
{ | ||
"extends": "@nationalbankbelgium/code-style/tsconfig/4.5.x", | ||
"compilerOptions": { | ||
// your configuration | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h1 align="center"> | ||
code style - TypeScript 4.5.x + Angular 13 | ||
</h1> | ||
|
||
## About | ||
|
||
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.5.x. and Angular 13 | ||
|
||
## Usage | ||
|
||
Adapt the content of your `tsconfig.json` file as follows: | ||
|
||
```text | ||
{ | ||
"extends": "@nationalbankbelgium/code-style/tsconfig/4.5.x/ng13", | ||
"compilerOptions": { | ||
// your configuration | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@nationalbankbelgium/code-style/tsconfig/4.5.x/ng13", | ||
"main": "tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"angularCompilerOptions": { | ||
"allowEmptyCodegenFiles": false, | ||
"annotateForClosureCompiler": false, | ||
"annotationsAs": "static fields", | ||
"disableExpressionLowering": true, | ||
"disableTypeScriptVersionCheck": false, | ||
"enableIvy": true, | ||
"enableLegacyTemplate": false, | ||
"enableResourceInlining": false, | ||
"fullTemplateTypeCheck": true, | ||
"generateCodeForLibraries": true, | ||
"preserveWhitespaces": false, | ||
"skipMetadataEmit": false, | ||
"strictMetadataEmit": false, | ||
"skipTemplateCodegen": false, | ||
"strictTemplates": true, | ||
"strictInjectionParameters": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@nationalbankbelgium/code-style/tsconfig/4.5.x", | ||
"main": "tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"allowUmdGlobalAccess": false, | ||
"allowUnreachableCode": false, | ||
"allowUnusedLabels": false, | ||
"alwaysStrict": true, | ||
"charset": "utf8", | ||
"declaration": true, | ||
"diagnostics": false, | ||
"downlevelIteration": true, | ||
"emitBOM": false, | ||
"emitDecoratorMetadata": true, | ||
"emitDeclarationOnly": false, | ||
"exactOptionalPropertyTypes": false, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": false, | ||
"importHelpers": true, | ||
"incremental": true, | ||
"inlineSourceMap": false, | ||
"inlineSources": true, | ||
"isolatedModules": false, | ||
"listEmittedFiles": false, | ||
"listFiles": false, | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"noEmitHelpers": false, | ||
"noEmitOnError": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noImplicitOverride": true, | ||
"noImplicitUseStrict": false, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUncheckedIndexedAccess": false, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"preserveConstEnums": true, | ||
"pretty": true, | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"strict": true, | ||
"strictBindCallApply": true, | ||
"strictFunctionTypes": true, | ||
"strictPropertyInitialization": true, | ||
"strictNullChecks": true, | ||
"stripInternal": true, | ||
"skipLibCheck": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"suppressExcessPropertyErrors": false, | ||
"useDefineForClassFields": true, | ||
"useUnknownInCatchVariables": true, | ||
"target": "es2015", | ||
"lib": ["dom", "dom.iterable", "es2020"] | ||
}, | ||
"exclude": ["node_modules", "dist"], | ||
"formatCodeOptions": { | ||
"indentSize": 2, | ||
"tabSize": 4, | ||
"newLineCharacter": "\r\n", | ||
"convertTabsToSpaces": false, | ||
"insertSpaceAfterCommaDelimiter": true, | ||
"insertSpaceAfterSemicolonInForStatements": true, | ||
"insertSpaceBeforeAndAfterBinaryOperators": true, | ||
"insertSpaceAfterKeywordsInControlFlowStatements": true, | ||
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, | ||
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, | ||
"placeOpenBraceOnNewLineForFunctions": false, | ||
"placeOpenBraceOnNewLineForControlBlocks": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h1 align="center"> | ||
code style - TypeScript 4.6.x | ||
</h1> | ||
|
||
## About | ||
|
||
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.6.x. | ||
|
||
## Usage | ||
|
||
Adapt the content of your `tsconfig.json` file as follows: | ||
|
||
```text | ||
{ | ||
"extends": "@nationalbankbelgium/code-style/tsconfig/4.6.x", | ||
"compilerOptions": { | ||
// your configuration | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h1 align="center"> | ||
code style - TypeScript 4.6.x + Angular >= 14.0.0 | ||
</h1> | ||
|
||
## About | ||
|
||
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.6.x. and Angular >= 14.0.0. | ||
|
||
## Usage | ||
|
||
Adapt the content of your `tsconfig.json` file as follows: | ||
|
||
```text | ||
{ | ||
"extends": "@nationalbankbelgium/code-style/tsconfig/4.6.x/ng14", | ||
"compilerOptions": { | ||
// your configuration | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@nationalbankbelgium/code-style/tsconfig/4.6.x/ng14", | ||
"main": "tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"angularCompilerOptions": { | ||
"allowEmptyCodegenFiles": false, | ||
"annotateForClosureCompiler": false, | ||
"annotationsAs": "static fields", | ||
"disableExpressionLowering": true, | ||
"disableTypeScriptVersionCheck": false, | ||
"enableIvy": true, | ||
"enableLegacyTemplate": false, | ||
"enableResourceInlining": false, | ||
"fullTemplateTypeCheck": true, | ||
"generateCodeForLibraries": true, | ||
"preserveWhitespaces": false, | ||
"skipMetadataEmit": false, | ||
"strictMetadataEmit": false, | ||
"skipTemplateCodegen": false, | ||
"strictTemplates": true, | ||
"strictInjectionParameters": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@nationalbankbelgium/code-style/tsconfig/4.6.x", | ||
"main": "tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"allowUmdGlobalAccess": false, | ||
"allowUnreachableCode": false, | ||
"allowUnusedLabels": false, | ||
"alwaysStrict": true, | ||
"charset": "utf8", | ||
"declaration": true, | ||
"diagnostics": false, | ||
"downlevelIteration": true, | ||
"emitBOM": false, | ||
"emitDecoratorMetadata": true, | ||
"emitDeclarationOnly": false, | ||
"exactOptionalPropertyTypes": false, | ||
"experimentalDecorators": true, | ||
"forceConsistentCasingInFileNames": false, | ||
"importHelpers": true, | ||
"incremental": true, | ||
"inlineSourceMap": false, | ||
"inlineSources": true, | ||
"isolatedModules": false, | ||
"listEmittedFiles": false, | ||
"listFiles": false, | ||
"module": "es2020", | ||
"moduleResolution": "node", | ||
"noEmitHelpers": false, | ||
"noEmitOnError": false, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noImplicitOverride": true, | ||
"noImplicitUseStrict": false, | ||
"noPropertyAccessFromIndexSignature": true, | ||
"noUncheckedIndexedAccess": false, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"preserveConstEnums": true, | ||
"pretty": true, | ||
"removeComments": false, | ||
"sourceMap": true, | ||
"strict": true, | ||
"strictBindCallApply": true, | ||
"strictFunctionTypes": true, | ||
"strictPropertyInitialization": true, | ||
"strictNullChecks": true, | ||
"stripInternal": true, | ||
"skipLibCheck": true, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"suppressExcessPropertyErrors": false, | ||
"useDefineForClassFields": true, | ||
"useUnknownInCatchVariables": true, | ||
"target": "es2020", | ||
"lib": ["dom", "dom.iterable", "es2020"] | ||
}, | ||
"exclude": ["node_modules", "dist"], | ||
"formatCodeOptions": { | ||
"indentSize": 2, | ||
"tabSize": 4, | ||
"newLineCharacter": "\r\n", | ||
"convertTabsToSpaces": false, | ||
"insertSpaceAfterCommaDelimiter": true, | ||
"insertSpaceAfterSemicolonInForStatements": true, | ||
"insertSpaceBeforeAndAfterBinaryOperators": true, | ||
"insertSpaceAfterKeywordsInControlFlowStatements": true, | ||
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, | ||
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, | ||
"placeOpenBraceOnNewLineForFunctions": false, | ||
"placeOpenBraceOnNewLineForControlBlocks": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters