1.12.3 • Published 4 months ago

@linters/eslint-config-angular v1.12.3

Weekly downloads
147
License
-
Repository
github
Last release
4 months ago

Eslint Config Angular

Plugins

This configuration uses the following plugins:

  • @angular-eslint/eslint-plugin
  • @angular-eslint/eslint-plugin-template
  • @linters/eslint-config-typescript

Install

$ yarn add eslint @angular-eslint/builder:lint @linters/eslint-config-angular -D

Add lint section to your architect:

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "your-project-name": {
      ...
      "architect": {
        ...
        "lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "src/**/*.ts",
              "src/**/*.html"
            ]
          }
        }
      }
    }
  },
  "defaultProject": "your-project-name"
}

Usage

Angular eslint configuration is a bit more complicated because we need to lint HTML files and Angular components can have special eslint rules too.

Rename a .eslintrc.json to .eslintrc.js and replace its contents:

module.exports = {
  extends: ['@linters/eslint-config-angular'],
}
1.12.3

4 months ago

1.12.2

11 months ago

1.12.0

1 year ago

1.10.3

2 years ago

1.10.2

2 years ago

1.9.0

2 years ago

1.11.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.8.8

3 years ago

1.8.7

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.2

3 years ago

1.8.4

3 years ago

1.8.3

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago