But doesn't fix the main issue that you can assign providers in many ways. This rule only supports ArrayExpressions
// This works ok
const providers = [ExampleProviderIncludedInModule];
@Module({
imports: [],
providers: [MyProvider],
})
export class ProviderArrayModule {}
// the rule will not detect this type of assignment
const providers = [ExampleProviderIncludedInModule];
@Module({
imports: [],
providers: providers,
})
export class ProviderArrayModule {}
This fixes https://github.com/darraghoriordan/eslint-plugin-nestjs-typed/issues/30
Non-factory decorators work ok with the decorator rules e.g.
======
Fixes crashing with https://github.com/darraghoriordan/eslint-plugin-nestjs-typed/issues/29
But doesn't fix the main issue that you can assign providers in many ways. This rule only supports ArrayExpressions