Skip to content

Commit

Permalink
feat(tsconfig): add configuration for typsecript
Browse files Browse the repository at this point in the history
Typescript `4.7.x` and angular `13.3.x` and `14`
Typescript `4.8.x` and angular `14` and `15`
Typescript `4.9.x` and angular `15.1.x` and `15.2.x`
  • Loading branch information
mhenkens committed Feb 19, 2024
1 parent dd071f3 commit 7b964fb
Show file tree
Hide file tree
Showing 27 changed files with 528 additions and 6 deletions.
20 changes: 20 additions & 0 deletions lib/tsconfig/4.7.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 4.7.x
</h1>

## About

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

## Usage

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

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

## About

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

## Usage

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

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng13",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/4.7.x/ng13/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng13",
"main": "tsconfig.json"
}
22 changes: 22 additions & 0 deletions lib/tsconfig/4.7.x/ng13/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"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
},
"target": "es2015"
}
20 changes: 20 additions & 0 deletions lib/tsconfig/4.7.x/ng14/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 4.7.x + Angular 14
</h1>

## About

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

## Usage

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

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/4.7.x/ng14/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14",
"main": "tsconfig.json"
}
21 changes: 21 additions & 0 deletions lib/tsconfig/4.7.x/ng14/tsconfig.json
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
}
}
4 changes: 4 additions & 0 deletions lib/tsconfig/4.7.x/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.7.x",
"main": "tsconfig.json"
}
72 changes: 72 additions & 0 deletions lib/tsconfig/4.7.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,
"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
}
}
20 changes: 20 additions & 0 deletions lib/tsconfig/4.8.x/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 4.8.x
</h1>

## About

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

## Usage

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

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

## About

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

## Usage

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

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/4.8.x/ng14/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14",
"main": "tsconfig.json"
}
21 changes: 21 additions & 0 deletions lib/tsconfig/4.8.x/ng14/tsconfig.json
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
}
}
20 changes: 20 additions & 0 deletions lib/tsconfig/4.8.x/ng15/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<h1 align="center">
code style - TypeScript 4.8.x + Angular Angular 15
</h1>

## About

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

## Usage

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

```text
{
"extends": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng15",
"compilerOptions": {
// your configuration
}
}
```
4 changes: 4 additions & 0 deletions lib/tsconfig/4.8.x/ng15/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng15",
"main": "tsconfig.json"
}
21 changes: 21 additions & 0 deletions lib/tsconfig/4.8.x/ng15/tsconfig.json
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
}
}
4 changes: 4 additions & 0 deletions lib/tsconfig/4.8.x/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "@nationalbankbelgium/code-style/tsconfig/4.8.x",
"main": "tsconfig.json"
}
72 changes: 72 additions & 0 deletions lib/tsconfig/4.8.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,
"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
}
}
Loading

0 comments on commit 7b964fb

Please sign in to comment.