@code-quality/eslint-config-angular

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i @code-quality/eslint-config-angular

Weekly Downloads

2

Version

1.1.0

License

none

Unpacked Size

7.27 kB

Total Files

10

Last publish

Collaborators

  • michal.jarnot