From 7b964fb2f00e9168119aed207fd1e43b8fb9351b Mon Sep 17 00:00:00 2001 From: Michael HENKENS Date: Mon, 19 Feb 2024 14:05:25 +0100 Subject: [PATCH] feat(tsconfig): add configuration for typsecript 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` --- lib/tsconfig/4.7.x/README.md | 20 ++++++++ lib/tsconfig/4.7.x/ng13/README.md | 20 ++++++++ lib/tsconfig/4.7.x/ng13/package.json | 4 ++ lib/tsconfig/4.7.x/ng13/tsconfig.json | 22 ++++++++ lib/tsconfig/4.7.x/ng14/README.md | 20 ++++++++ lib/tsconfig/4.7.x/ng14/package.json | 4 ++ lib/tsconfig/4.7.x/ng14/tsconfig.json | 21 ++++++++ lib/tsconfig/4.7.x/package.json | 4 ++ lib/tsconfig/4.7.x/tsconfig.json | 72 +++++++++++++++++++++++++++ lib/tsconfig/4.8.x/README.md | 20 ++++++++ lib/tsconfig/4.8.x/ng14/README.md | 20 ++++++++ lib/tsconfig/4.8.x/ng14/package.json | 4 ++ lib/tsconfig/4.8.x/ng14/tsconfig.json | 21 ++++++++ lib/tsconfig/4.8.x/ng15/README.md | 20 ++++++++ lib/tsconfig/4.8.x/ng15/package.json | 4 ++ lib/tsconfig/4.8.x/ng15/tsconfig.json | 21 ++++++++ lib/tsconfig/4.8.x/package.json | 4 ++ lib/tsconfig/4.8.x/tsconfig.json | 72 +++++++++++++++++++++++++++ lib/tsconfig/4.9.x/README.md | 20 ++++++++ lib/tsconfig/4.9.x/ng15/README.md | 20 ++++++++ lib/tsconfig/4.9.x/ng15/package.json | 4 ++ lib/tsconfig/4.9.x/ng15/tsconfig.json | 21 ++++++++ lib/tsconfig/4.9.x/package.json | 4 ++ lib/tsconfig/4.9.x/tsconfig.json | 72 +++++++++++++++++++++++++++ lib/tsconfig/README.md | 8 +++ package-lock.json | 8 +-- package.json | 4 +- 27 files changed, 528 insertions(+), 6 deletions(-) create mode 100644 lib/tsconfig/4.7.x/README.md create mode 100644 lib/tsconfig/4.7.x/ng13/README.md create mode 100644 lib/tsconfig/4.7.x/ng13/package.json create mode 100644 lib/tsconfig/4.7.x/ng13/tsconfig.json create mode 100644 lib/tsconfig/4.7.x/ng14/README.md create mode 100644 lib/tsconfig/4.7.x/ng14/package.json create mode 100644 lib/tsconfig/4.7.x/ng14/tsconfig.json create mode 100644 lib/tsconfig/4.7.x/package.json create mode 100644 lib/tsconfig/4.7.x/tsconfig.json create mode 100644 lib/tsconfig/4.8.x/README.md create mode 100644 lib/tsconfig/4.8.x/ng14/README.md create mode 100644 lib/tsconfig/4.8.x/ng14/package.json create mode 100644 lib/tsconfig/4.8.x/ng14/tsconfig.json create mode 100644 lib/tsconfig/4.8.x/ng15/README.md create mode 100644 lib/tsconfig/4.8.x/ng15/package.json create mode 100644 lib/tsconfig/4.8.x/ng15/tsconfig.json create mode 100644 lib/tsconfig/4.8.x/package.json create mode 100644 lib/tsconfig/4.8.x/tsconfig.json create mode 100644 lib/tsconfig/4.9.x/README.md create mode 100644 lib/tsconfig/4.9.x/ng15/README.md create mode 100644 lib/tsconfig/4.9.x/ng15/package.json create mode 100644 lib/tsconfig/4.9.x/ng15/tsconfig.json create mode 100644 lib/tsconfig/4.9.x/package.json create mode 100644 lib/tsconfig/4.9.x/tsconfig.json diff --git a/lib/tsconfig/4.7.x/README.md b/lib/tsconfig/4.7.x/README.md new file mode 100644 index 00000000..63cfb9a8 --- /dev/null +++ b/lib/tsconfig/4.7.x/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.7.x +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.7.x/ng13/README.md b/lib/tsconfig/4.7.x/ng13/README.md new file mode 100644 index 00000000..c9226280 --- /dev/null +++ b/lib/tsconfig/4.7.x/ng13/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.6.x + Angular 13.3.x +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.7.x/ng13/package.json b/lib/tsconfig/4.7.x/ng13/package.json new file mode 100644 index 00000000..88205e93 --- /dev/null +++ b/lib/tsconfig/4.7.x/ng13/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng13", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.7.x/ng13/tsconfig.json b/lib/tsconfig/4.7.x/ng13/tsconfig.json new file mode 100644 index 00000000..51345085 --- /dev/null +++ b/lib/tsconfig/4.7.x/ng13/tsconfig.json @@ -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" +} diff --git a/lib/tsconfig/4.7.x/ng14/README.md b/lib/tsconfig/4.7.x/ng14/README.md new file mode 100644 index 00000000..51e4daa1 --- /dev/null +++ b/lib/tsconfig/4.7.x/ng14/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.7.x + Angular 14 +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.7.x/ng14/package.json b/lib/tsconfig/4.7.x/ng14/package.json new file mode 100644 index 00000000..3e4fa14a --- /dev/null +++ b/lib/tsconfig/4.7.x/ng14/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.7.x/ng14/tsconfig.json b/lib/tsconfig/4.7.x/ng14/tsconfig.json new file mode 100644 index 00000000..40c4ed00 --- /dev/null +++ b/lib/tsconfig/4.7.x/ng14/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.7.x/package.json b/lib/tsconfig/4.7.x/package.json new file mode 100644 index 00000000..49338a41 --- /dev/null +++ b/lib/tsconfig/4.7.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.7.x", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.7.x/tsconfig.json b/lib/tsconfig/4.7.x/tsconfig.json new file mode 100644 index 00000000..02fc591f --- /dev/null +++ b/lib/tsconfig/4.7.x/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.8.x/README.md b/lib/tsconfig/4.8.x/README.md new file mode 100644 index 00000000..9f9b19d3 --- /dev/null +++ b/lib/tsconfig/4.8.x/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.8.x +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.8.x/ng14/README.md b/lib/tsconfig/4.8.x/ng14/README.md new file mode 100644 index 00000000..aaa0fc11 --- /dev/null +++ b/lib/tsconfig/4.8.x/ng14/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.8.x + Angular Angular 14 +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.8.x/ng14/package.json b/lib/tsconfig/4.8.x/ng14/package.json new file mode 100644 index 00000000..4914f9a5 --- /dev/null +++ b/lib/tsconfig/4.8.x/ng14/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.8.x/ng14/tsconfig.json b/lib/tsconfig/4.8.x/ng14/tsconfig.json new file mode 100644 index 00000000..40c4ed00 --- /dev/null +++ b/lib/tsconfig/4.8.x/ng14/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.8.x/ng15/README.md b/lib/tsconfig/4.8.x/ng15/README.md new file mode 100644 index 00000000..89ddfc18 --- /dev/null +++ b/lib/tsconfig/4.8.x/ng15/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.8.x + Angular Angular 15 +

+ +## 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 + } +} +``` diff --git a/lib/tsconfig/4.8.x/ng15/package.json b/lib/tsconfig/4.8.x/ng15/package.json new file mode 100644 index 00000000..2d10107f --- /dev/null +++ b/lib/tsconfig/4.8.x/ng15/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.8.x/ng15", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.8.x/ng15/tsconfig.json b/lib/tsconfig/4.8.x/ng15/tsconfig.json new file mode 100644 index 00000000..40c4ed00 --- /dev/null +++ b/lib/tsconfig/4.8.x/ng15/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.8.x/package.json b/lib/tsconfig/4.8.x/package.json new file mode 100644 index 00000000..e6ee9f3d --- /dev/null +++ b/lib/tsconfig/4.8.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.8.x", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.8.x/tsconfig.json b/lib/tsconfig/4.8.x/tsconfig.json new file mode 100644 index 00000000..02fc591f --- /dev/null +++ b/lib/tsconfig/4.8.x/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.9.x/README.md b/lib/tsconfig/4.9.x/README.md new file mode 100644 index 00000000..41895b56 --- /dev/null +++ b/lib/tsconfig/4.9.x/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.9.x +

+ +## About + +This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.9.x. + +## Usage + +Adapt the content of your `tsconfig.json` file as follows: + +```text +{ + "extends": "@nationalbankbelgium/code-style/tsconfig/4.9.x", + "compilerOptions": { + // your configuration + } +} +``` diff --git a/lib/tsconfig/4.9.x/ng15/README.md b/lib/tsconfig/4.9.x/ng15/README.md new file mode 100644 index 00000000..2b6d202c --- /dev/null +++ b/lib/tsconfig/4.9.x/ng15/README.md @@ -0,0 +1,20 @@ +

+ code style - TypeScript 4.9.x + Angular Angular 15.1.x || 15.2.x +

+ +## About + +This sub-package hosts the [TypeScript](https://www.typescriptlang.org/) configuration for TypeScript 4.9.x. and Angular 15.1.x || 15.2.x + +## Usage + +Adapt the content of your `tsconfig.json` file as follows: + +```text +{ + "extends": "@nationalbankbelgium/code-style/tsconfig/4.9.x/ng15", + "compilerOptions": { + // your configuration + } +} +``` diff --git a/lib/tsconfig/4.9.x/ng15/package.json b/lib/tsconfig/4.9.x/ng15/package.json new file mode 100644 index 00000000..ca138cd0 --- /dev/null +++ b/lib/tsconfig/4.9.x/ng15/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.9.x/ng15", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.9.x/ng15/tsconfig.json b/lib/tsconfig/4.9.x/ng15/tsconfig.json new file mode 100644 index 00000000..40c4ed00 --- /dev/null +++ b/lib/tsconfig/4.9.x/ng15/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/4.9.x/package.json b/lib/tsconfig/4.9.x/package.json new file mode 100644 index 00000000..083186f3 --- /dev/null +++ b/lib/tsconfig/4.9.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/tsconfig/4.9.x", + "main": "tsconfig.json" +} diff --git a/lib/tsconfig/4.9.x/tsconfig.json b/lib/tsconfig/4.9.x/tsconfig.json new file mode 100644 index 00000000..02fc591f --- /dev/null +++ b/lib/tsconfig/4.9.x/tsconfig.json @@ -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 + } +} diff --git a/lib/tsconfig/README.md b/lib/tsconfig/README.md index 18fef2bc..c9c56bf7 100644 --- a/lib/tsconfig/README.md +++ b/lib/tsconfig/README.md @@ -40,6 +40,14 @@ The following versions are available (based on **TypeScript** version and **Angu - 4.6.x - `@nationalbankbelgium/code-style/tsconfig/4.6.x` - 4.6.x and Angular 13 - `@nationalbankbelgium/code-style/tsconfig/4.6.x/ng13` - 4.6.x and Angular 14 - `@nationalbankbelgium/code-style/tsconfig/4.6.x/ng14` +- 4.7.x - `@nationalbankbelgium/code-style/tsconfig/4.7.x` +- 4.7.x and Angular 13 - `@nationalbankbelgium/code-style/tsconfig/4.7.x/ng13` +- 4.7.x and Angular 14 - `@nationalbankbelgium/code-style/tsconfig/4.7.x/ng14` +- 4.8.x - `@nationalbankbelgium/code-style/tsconfig/4.8.x` +- 4.8.x and Angular 14 - `@nationalbankbelgium/code-style/tsconfig/4.8.x/ng14` +- 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` ## Usage diff --git a/package-lock.json b/package-lock.json index 5095503d..d60120cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "release-it": "^17.0.1", "stylelint": "~13.13.1", "tslint": "~6.1.0", - "typescript": "~4.6.4" + "typescript": "~4.9.4" } }, "node_modules/@ampproject/remapping": { @@ -10373,9 +10373,9 @@ } }, "node_modules/typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index f86032ff..a82e9107 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "release-it": "^17.0.1", "stylelint": "~13.13.1", "tslint": "~6.1.0", - "typescript": "~4.6.4" + "typescript": "~4.9.4" }, "scripts": { "build": "bash ./build.sh", @@ -55,7 +55,7 @@ "clean": "npx rimraf dist", "clean:modules": "npx rimraf ./node_modules package-lock.json", "clean:slate": "npm run clean:modules && npm install", - "commit": "./node_modules/.bin/git-cz", + "commit": "git-cz", "generate:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "generate:changelog-recent": "conventional-changelog -p angular | tail -n +3", "prepack": "pinst --disable",