0.0.2 • Published 3 years ago

@kasaharu/eslint-plugin-ng v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

eslint-plugin-ng

The eslint-plugin-ng is an ESLint plugin to prevent Angular apps from using NO_ERRORS_SCHEMA.

Installation

Install ESLint locally.

$ yarn add eslint -D

Next, install eslint-plugin-ng:

$ yarn add @kasaharu/eslint-plugin-ng -D

Usage

Add eslint-plugin-ng to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@kasaharu/ng"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@kasaharu/ng/no-ng-no-errors-schema": "error"
  }
}