JSPM

@code-quality/eslint-config-angular

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q19796F

The eslint for Angular applications you have been looking for.

Package Exports

  • @code-quality/eslint-config-angular

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@code-quality/eslint-config-angular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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