Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 575 Bytes

deprecated-api-modules.md

File metadata and controls

26 lines (21 loc) · 575 Bytes

Use imports property for the list of imported modules (deprecated-api-modules)

Disallow usage of the deprecated api (import modules).

Rule Details

The following patterns are considered warnings (fail):

@Module({
  modules: [DatabaseModule]
})
export class CatModule { }

The following patterns are not warnings (pass):

@Module({
  imports: [DatabaseModule]
})
export class CatModule { }

When Not To Use It

If you are using old version of nestjs.

Further Reading