Skip to content

Commit e7085d6

Browse files
authored
Merge pull request #486 from mhenkens/feature/angular15
feat(tsconfig): add configuration for typescript
2 parents 2b82d12 + 193d8c4 commit e7085d6

25 files changed

+1574
-1402
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- uses: actions/checkout@v4
2626

2727
# See: https://github.com/marketplace/actions/setup-node-js-environment
28-
- name: Use Node.js 18
28+
- name: Use Node.js 20
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: "18"
31+
node-version: "20"
3232

3333
- name: Create file & folder for GitHub Actions logs
3434
run: |

lib/tsconfig/4.7.x/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 align="center">
2+
code style - TypeScript 4.7.x
3+
</h1>
4+
5+
## About
6+
7+
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.7.x.
8+
9+
## Usage
10+
11+
Adapt the content of your `tsconfig.json` file as follows:
12+
13+
```text
14+
{
15+
"extends": "@nationalbankbelgium/code-style/tsconfig/4.7.x",
16+
"compilerOptions": {
17+
// your configuration
18+
}
19+
}
20+
```

lib/tsconfig/4.7.x/ng14/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 align="center">
2+
code style - TypeScript 4.7.x + Angular 14
3+
</h1>
4+
5+
## About
6+
7+
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.7.x and Angular 14
8+
9+
## Usage
10+
11+
Adapt the content of your `tsconfig.json` file as follows:
12+
13+
```text
14+
{
15+
"extends": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14",
16+
"compilerOptions": {
17+
// your configuration
18+
}
19+
}
20+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14",
3+
"main": "tsconfig.json"
4+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"angularCompilerOptions": {
4+
"allowEmptyCodegenFiles": false,
5+
"annotateForClosureCompiler": false,
6+
"annotationsAs": "static fields",
7+
"disableExpressionLowering": true,
8+
"disableTypeScriptVersionCheck": false,
9+
"enableIvy": true,
10+
"enableLegacyTemplate": false,
11+
"enableResourceInlining": false,
12+
"fullTemplateTypeCheck": true,
13+
"generateCodeForLibraries": true,
14+
"preserveWhitespaces": false,
15+
"skipMetadataEmit": false,
16+
"strictInputAccessModifiers": true,
17+
"strictMetadataEmit": false,
18+
"skipTemplateCodegen": false,
19+
"strictTemplates": true,
20+
"strictInjectionParameters": true
21+
}
22+
}

lib/tsconfig/4.7.x/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@nationalbankbelgium/code-style/tsconfig/4.7.x",
3+
"main": "tsconfig.json"
4+
}

lib/tsconfig/4.7.x/tsconfig.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"allowUmdGlobalAccess": false,
5+
"allowUnreachableCode": false,
6+
"allowUnusedLabels": false,
7+
"alwaysStrict": true,
8+
"charset": "utf8",
9+
"declaration": true,
10+
"diagnostics": false,
11+
"downlevelIteration": true,
12+
"emitBOM": false,
13+
"emitDecoratorMetadata": true,
14+
"emitDeclarationOnly": false,
15+
"exactOptionalPropertyTypes": false,
16+
"experimentalDecorators": true,
17+
"forceConsistentCasingInFileNames": true,
18+
"importHelpers": true,
19+
"incremental": true,
20+
"inlineSourceMap": false,
21+
"inlineSources": true,
22+
"isolatedModules": false,
23+
"listEmittedFiles": false,
24+
"listFiles": false,
25+
"module": "es2020",
26+
"moduleResolution": "node",
27+
"noEmitHelpers": false,
28+
"noEmitOnError": false,
29+
"noFallthroughCasesInSwitch": true,
30+
"noImplicitAny": true,
31+
"noImplicitReturns": true,
32+
"noImplicitThis": true,
33+
"noImplicitOverride": true,
34+
"noImplicitUseStrict": false,
35+
"noPropertyAccessFromIndexSignature": true,
36+
"noUncheckedIndexedAccess": false,
37+
"noUnusedLocals": true,
38+
"noUnusedParameters": true,
39+
"preserveConstEnums": true,
40+
"pretty": true,
41+
"removeComments": false,
42+
"sourceMap": true,
43+
"strict": true,
44+
"strictBindCallApply": true,
45+
"strictFunctionTypes": true,
46+
"strictPropertyInitialization": true,
47+
"strictNullChecks": true,
48+
"stripInternal": true,
49+
"skipLibCheck": true,
50+
"suppressImplicitAnyIndexErrors": true,
51+
"suppressExcessPropertyErrors": false,
52+
"useDefineForClassFields": true,
53+
"useUnknownInCatchVariables": true,
54+
"target": "es2020",
55+
"lib": ["dom", "dom.iterable", "es2020"]
56+
},
57+
"exclude": ["node_modules", "dist"],
58+
"formatCodeOptions": {
59+
"indentSize": 2,
60+
"tabSize": 4,
61+
"newLineCharacter": "\r\n",
62+
"convertTabsToSpaces": false,
63+
"insertSpaceAfterCommaDelimiter": true,
64+
"insertSpaceAfterSemicolonInForStatements": true,
65+
"insertSpaceBeforeAndAfterBinaryOperators": true,
66+
"insertSpaceAfterKeywordsInControlFlowStatements": true,
67+
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
68+
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
69+
"placeOpenBraceOnNewLineForFunctions": false,
70+
"placeOpenBraceOnNewLineForControlBlocks": false
71+
}
72+
}

lib/tsconfig/4.8.x/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 align="center">
2+
code style - TypeScript 4.8.x
3+
</h1>
4+
5+
## About
6+
7+
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.8.x.
8+
9+
## Usage
10+
11+
Adapt the content of your `tsconfig.json` file as follows:
12+
13+
```text
14+
{
15+
"extends": "@nationalbankbelgium/code-style/tsconfig/4.8.x",
16+
"compilerOptions": {
17+
// your configuration
18+
}
19+
}
20+
```

lib/tsconfig/4.8.x/ng14/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<h1 align="center">
2+
code style - TypeScript 4.8.x + Angular 14
3+
</h1>
4+
5+
## About
6+
7+
This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.8.x and Angular 14
8+
9+
## Usage
10+
11+
Adapt the content of your `tsconfig.json` file as follows:
12+
13+
```text
14+
{
15+
"extends": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14",
16+
"compilerOptions": {
17+
// your configuration
18+
}
19+
}
20+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14",
3+
"main": "tsconfig.json"
4+
}

0 commit comments

Comments
 (0)