@code-quality/eslint-config-angular
v1.1.0
Published
The eslint for Angular applications you have been looking for.
Downloads
2
Maintainers
Readme
Eslint Config Angular
eslint shareable config to help you identify and report on patterns found in your applications.
Plugins
This configuration uses the following plugins:
Install
$ yarn add @code-quality/eslint-config-angular -D
Usage
The shareable config can be configured in the eslint configuration file:
Create a .eslintrc.js file with the following contents:
module.exports = {
extends: [
'@code-quality/eslint-config-angular',
],
}
Run:
yarn add @angular-eslint/builder
ng add @angular-eslint/schematics
Update lint
configuration in angular.json
:
{
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"eslintConfig": ".eslintrc.js",
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}