Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dscheerens/eslint-config-angular

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dscheerens/eslint-config-angular

Package containing recommended ESLint configuration for Angular

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

NPM Version

Angular ESLint configuration

This NPM package contains an (opiniated) ESLint configuration for Angular.

Installation

First, make sure you have the following dev dependencies installed:

  • @angular-eslint/eslint-plugin
  • @angular-eslint/eslint-plugin-template
  • @angular-eslint/template-parser
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint

You can install them all at once using the following command:

npm install --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser @angular-eslint/eslint-plugin @angular-eslint/eslint-plugin-template @angular-eslint/template-parser

Next, install this package:

npm install --save-dev @dscheerens/eslint-config-angular

Usage

Below you can find an example .eslintrc.json file that makes use of this package.

{
  "root": true,
  "overrides": [
    {
      "files": ["*.ts"],
      "parserOptions": {
        "project": ["./tsconfig.json"],
        "createDefaultProgram": true
      },
      "extends": ["@dscheerens/eslint-config-angular/typescript"]
    },
    {
      "files": ["*.spec.ts"],
      "extends": ["@dscheerens/eslint-config-angular/spec"]
    },
    {
      "files": ["*.html"],
      "extends": ["@dscheerens/eslint-config-angular/html"]
    }
  ]
}

Keywords

FAQs

Package last updated on 09 Apr 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc