Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@lego/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lego/eslint-config

LEGO shareable eslint config for ts projects

latest
Source
npmnpm
Version
7.2.1
Version published
Maintainers
2
Created
Source

@lego/eslint-config

Purpose

This is an opinionated all-round configuration.

Installation

Install this config package:

$ npm i -D @lego/eslint-config

Usage

Extend your eslint.json, and make sure @lego/eslint-config has been added:

{
  "extends": ["@lego/eslint-config"]
}

Note: if you want to use TypeScript don't use @lego/eslint-config, use @lego/eslint-config-typescript instead.

Overriding Rules

With the above eslint.json configuration example, you can still use or override already defined rules as such:

{
  "extends": "@lego/eslint-config",
  "rules": {
    "camelcase": "warn"
  }
}

It's recommended to inspect the defined rule's configurations where the reasoning for the configuration lives. If a configuration could benefit more than just the project you're working on, feel free to create a pull request.

Keywords

eslint

FAQs

Package last updated on 23 Aug 2021

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