The eslint-plugin-ng is an ESLint plugin to prevent Angular apps from using NO_ERRORS_SCHEMA.
Install ESLint locally.
$ yarn add eslint -D
Next, install eslint-plugin-ng
:
$ yarn add @kasaharu/eslint-plugin-ng -D
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"
}
}