facebook pixelCodiga Analysis TypeScript Rules
BACK TO LIST

TypeScript rules

The Codiga Static Analysis engine checks TypeScript code and supports many popular libraries. If you are using React, NextJS, Vue or Angular: the engine will flag any issue in your codebase. Automate your code reviews with Codiga and merge with confidence.

      @angular-eslint/no-empty-lifecycle-method

      Design
      High

      Detect empty lifecycle methods

      Learn more

      @angular-eslint/prefer-on-push-component-change-detection

      Design
      High

      Prefer ChangeDetectionStrategy.OnPush as the changeDetection strategy for your @Component

      @angular-eslint/use-component-view-encapsulation

      Design
      High

      Detect any component encapsulation that is ViewEncapsulation.None. It should be either ViewEncapsulation.ShadowDom or ViewEncapsulation.Emulated

      @angular-eslint/use-lifecycle-interface

      Design
      High

      Detect if there are missing any implements keyword for every lifecycle hook you use (e.g if using the lifecycle method ngAfterViewInit, the AfterViewInit interface should be implemented)

      import/max-dependencies

      Design
      High

      Detect if there are too many dependencies in one module according to settings