Fix ExtensionsModule.forChild regression (#9844)

This commit is contained in:
Denys Vuika 2024-06-20 13:14:27 -04:00 committed by GitHub
parent af552bfbb9
commit 328d233b05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 58 additions and 0 deletions

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/cli/tsconfig.json"],
"createDefaultProgram": true
},
"rules": {
"prefer-arrow/prefer-arrow-functions": "off",
"@typescript-eslint/no-var-requires": "off",
@ -36,6 +40,10 @@
},
{
"files": ["*.html"],
"parserOptions": {
"project": ["lib/cli/tsconfig.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {}
}

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/content-services/tsconfig.lib.json", "lib/content-services/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"jsdoc/newline-after-description": "warn",
"@typescript-eslint/naming-convention": "warn",
@ -72,6 +76,10 @@
},
{
"files": ["*.html"],
"parserOptions": {
"project": ["lib/content-services/tsconfig.lib.json", "lib/content-services/tsconfig.spec.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {
"@angular-eslint/template/no-autofocus": "error",

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/core/tsconfig.lib.json", "lib/core/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"jsdoc/newline-after-description": "warn",
"@typescript-eslint/naming-convention": "off",

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/extensions/tsconfig.lib.json", "lib/extensions/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"no-underscore-dangle": ["error", { "allowAfterThis": true }],

View File

@ -44,4 +44,14 @@ export class ExtensionsModule {
]
};
}
/**
* @deprecated use `ExtensionsModule` instead, `EXTENSION_DIRECTIVES` or direct standalone components
* @returns Module with providers
*/
static forChild(): ModuleWithProviders<ExtensionsModule> {
return {
ngModule: ExtensionsModule
};
}
}

View File

@ -7,6 +7,10 @@
"extends": [
"plugin:@nrwl/nx/angular"
],
"parserOptions": {
"project": ["lib/process-services-cloud/tsconfig.lib.json", "lib/process-services-cloud/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"jsdoc/newline-after-description": "warn",
"@typescript-eslint/naming-convention": "warn",
@ -75,6 +79,10 @@
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"parserOptions": {
"project": ["lib/process-services-cloud/tsconfig.lib.json", "lib/process-services-cloud/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/template/no-autofocus": "error",
"@angular-eslint/template/no-positive-tabindex": "error"

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/process-services/tsconfig.lib.json", "lib/process-services/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"jsdoc/newline-after-description": "warn",
"@typescript-eslint/naming-convention": "warn",
@ -72,6 +76,10 @@
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"parserOptions": {
"project": ["lib/process-services/tsconfig.lib.json", "lib/process-services/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/template/no-autofocus": "error",
"@angular-eslint/template/no-positive-tabindex": "error"

View File

@ -5,6 +5,10 @@
{
"files": ["*.ts"],
"extends": ["plugin:@nrwl/nx/angular"],
"parserOptions": {
"project": ["lib/testing/tsconfig.lib.json"],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/component-selector": [
"error",
@ -59,6 +63,10 @@
},
{
"files": ["*.html"],
"parserOptions": {
"project": ["lib/testing/tsconfig.lib.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {}
}