Skip to content

Commit

Permalink
Merge pull request #516 from mhenkens/feature/angular16
Browse files Browse the repository at this point in the history
feat(tsconfig): update support tsconfig@5 and angular@16
  • Loading branch information
SuperITMan authored May 29, 2024
2 parents de13cd3 + 52de768 commit f64c2bc
Show file tree
Hide file tree
Showing 17 changed files with 616 additions and 277 deletions.
20 changes: 20 additions & 0 deletions lib/tsconfig/4.9.x/ng16/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 4.9.x + Angular 16.x
</h1>

## About

This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.9.x and Angular 16.x

## Usage

Adapt the content of your `tsconfig.json` file as follows:

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/4.9.x/ng16",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/4.9.x/ng16/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.9.x/ng16",
"main": "tsconfig.json"
}
23 changes: 23 additions & 0 deletions lib/tsconfig/4.9.x/ng16/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": false,
"annotationsAs": "static fields",
"disableExpressionLowering": true,
"disableTypeScriptVersionCheck": false,
"enableIvy": true,
"enableI18nLegacyMessageIdFormat": false,
"enableLegacyTemplate": false,
"enableResourceInlining": false,
"fullTemplateTypeCheck": true,
"generateCodeForLibraries": true,
"preserveWhitespaces": false,
"skipMetadataEmit": false,
"strictMetadataEmit": false,
"skipTemplateCodegen": false,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"strictInjectionParameters": true
}
}
20 changes: 20 additions & 0 deletions lib/tsconfig/5.0.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 5.0.x
</h1>

## About

This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 5.0.x.

## Usage

Adapt the content of your `tsconfig.json` file as follows:

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/5.0.x",
"compilerOptions": {
// your configuration
}
}
```
20 changes: 20 additions & 0 deletions lib/tsconfig/5.0.x/ng16/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 5.0.x + Angular 16.x
</h1>

## About

This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 5.0.x and Angular 16.x

## Usage

Adapt the content of your `tsconfig.json` file as follows:

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/5.0.x/ng16",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/5.0.x/ng16/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/5.0.x/ng16",
"main": "tsconfig.json"
}
23 changes: 23 additions & 0 deletions lib/tsconfig/5.0.x/ng16/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": false,
"annotationsAs": "static fields",
"disableExpressionLowering": true,
"disableTypeScriptVersionCheck": false,
"enableIvy": true,
"enableLegacyTemplate": false,
"enableResourceInlining": false,
"enableI18nLegacyMessageIdFormat": false,
"fullTemplateTypeCheck": true,
"generateCodeForLibraries": true,
"preserveWhitespaces": false,
"skipMetadataEmit": false,
"strictMetadataEmit": false,
"skipTemplateCodegen": false,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"strictInjectionParameters": true
}
}
4 changes: 4 additions & 0 deletions lib/tsconfig/5.0.x/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/5.0.x",
"main": "tsconfig.json"
}
72 changes: 72 additions & 0 deletions lib/tsconfig/5.0.x/tsconfig.json
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,
"declaration": true,
"diagnostics": false,
"downlevelIteration": true,
"emitBOM": false,
"emitDecoratorMetadata": true,
"emitDeclarationOnly": false,
"exactOptionalPropertyTypes": false,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"incremental": true,
"ignoreDeprecations": "5.0",
"inlineSourceMap": false,
"inlineSources": true,
"isolatedModules": false,
"listEmittedFiles": false,
"listFiles": false,
"module": "es2022",
"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,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": true,
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true,
"target": "es2022",
"lib": ["dom", "dom.iterable", "es2022"]
},
"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
}
}
20 changes: 20 additions & 0 deletions lib/tsconfig/5.1.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 5.1.x
</h1>

## About

This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 5.1.x.

## Usage

Adapt the content of your `tsconfig.json` file as follows:

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/5.1.x",
"compilerOptions": {
// your configuration
}
}
```
20 changes: 20 additions & 0 deletions lib/tsconfig/5.1.x/ng16/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 5.1.x + Angular 16.x
</h1>

## About

This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 5.1.x and Angular 16.x

## Usage

Adapt the content of your `tsconfig.json` file as follows:

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/5.1.x/ng16",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/5.1.x/ng16/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/5.1.x/ng16",
"main": "tsconfig.json"
}
23 changes: 23 additions & 0 deletions lib/tsconfig/5.1.x/ng16/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": false,
"annotationsAs": "static fields",
"disableExpressionLowering": true,
"disableTypeScriptVersionCheck": false,
"enableIvy": true,
"enableLegacyTemplate": false,
"enableI18nLegacyMessageIdFormat": false,
"enableResourceInlining": false,
"fullTemplateTypeCheck": true,
"generateCodeForLibraries": true,
"preserveWhitespaces": false,
"skipMetadataEmit": false,
"strictMetadataEmit": false,
"skipTemplateCodegen": false,
"strictInputAccessModifiers": true,
"strictTemplates": true,
"strictInjectionParameters": true
}
}
4 changes: 4 additions & 0 deletions lib/tsconfig/5.1.x/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/5.1.x",
"main": "tsconfig.json"
}
72 changes: 72 additions & 0 deletions lib/tsconfig/5.1.x/tsconfig.json
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,
"declaration": true,
"diagnostics": false,
"downlevelIteration": true,
"emitBOM": false,
"emitDecoratorMetadata": true,
"emitDeclarationOnly": false,
"exactOptionalPropertyTypes": false,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"incremental": true,
"ignoreDeprecations": "5.0",
"inlineSourceMap": false,
"inlineSources": true,
"isolatedModules": false,
"listEmittedFiles": false,
"listFiles": false,
"module": "es2022",
"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,
"suppressExcessPropertyErrors": false,
"suppressImplicitAnyIndexErrors": true,
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true,
"target": "es2022",
"lib": ["dom", "dom.iterable", "es2022"]
},
"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
}
}
5 changes: 5 additions & 0 deletions lib/tsconfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ The following versions are available (based on **TypeScript** version and **Angu
- 4.8.x and Angular 15 - `@nationalbankbelgium/code-style/tsconfig/4.8.x/ng15`
- 4.9.x - `@nationalbankbelgium/code-style/tsconfig/4.9.x`
- 4.9.x and Angular 15 - `@nationalbankbelgium/code-style/tsconfig/4.9.x/ng15`
- 4.9.x and Angular 16 - `@nationalbankbelgium/code-style/tsconfig/4.9.x/ng16`
- 5.0.x - `@nationalbankbelgium/code-style/tsconfig/5.0.x`
- 5.0.x and Angular 16 - `@nationalbankbelgium/code-style/tsconfig/5.0.x/ng16`
- 5.1.x - `@nationalbankbelgium/code-style/tsconfig/5.1.x`
- 5.1.x and Angular 16 - `@nationalbankbelgium/code-style/tsconfig/5.1.x/ng1

## Usage

Expand Down
Loading

0 comments on commit f64c2bc

Please sign in to comment.