🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@code-quality/eslint-config-angular

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-quality/eslint-config-angular

The eslint for Angular applications you have been looking for.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 03 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts