0.1.0 • Published 4 years ago

eslint-plugin-ng-extra v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

eslint-plugin-ng-extra

ESLint plugin for Angular applications.

CI codecov License: MIT

Propose or contribute a new rule ➡

Install

Make sure you have TypeScript and @typescript-eslint/parser installed:

$ npm install --save-dev typescript @typescript-eslint/parser

Then install the plugin

$ npm install --save-dev eslint eslint-plugin-ng-extra

Usage

Add @typescript-eslint/parser to the parser field and ng-extra to the plugins section of your .eslintrc configuration file, then configure the rules you want to use under the rules section.

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["ng-extra"],
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "plugin:ng-extra"
  ]
}

Rules

:white_check_mark: = done
:construction: = work in progress

Best practices

RuleDescriptionStatus
check-http-errorsChecks that when using the HTTP client, error are caught:white_check_mark:
no-dangling-subscriptionChecks that there are no dangling subscriptions in a component:white_check_mark:
no-nested-subscriptionsChecks that there are no nested subscriptions in a component:white_check_mark:
no-subject-expositionChecks that no subjects are publicly exposed:white_check_mark: