eslint-plugin-ng-extra

0.1.0 • Public • Published

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

= done
🚧 = work in progress

Best practices

Rule Description Status
check-http-errors Checks that when using the HTTP client, error are caught
no-dangling-subscription Checks that there are no dangling subscriptions in a component
no-nested-subscriptions Checks that there are no nested subscriptions in a component
no-subject-exposition Checks that no subjects are publicly exposed

Package Sidebar

Install

npm i eslint-plugin-ng-extra

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

19.9 kB

Total Files

13

Last publish

Collaborators

  • ossedb