1.1.0 • Published 4 years ago

@code-quality/eslint-config-angular v1.1.0

Weekly downloads
70
License
-
Repository
github
Last release
4 years ago

Actions Status

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/**"
        ]
      }
    }
}