@lego/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

7.2.1 • Public • Published

@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.

/@lego/eslint-config/

    Package Sidebar

    Install

    npm i @lego/eslint-config

    Weekly Downloads

    251

    Version

    7.2.1

    License

    MIT

    Unpacked Size

    122 kB

    Total Files

    29

    Last publish

    Collaborators

    • mbogh
    • xshteff
    • vincentbriglia
    • giovannidegani