eslint-config-lb

1.7.3 • Public • Published

eslint-config-lb

ESLint configuration for Linear Bits

Setup

Node Engine

You're required to set engines in package.json because of eslint-plugin-node

Place the following in your package.json.

{
    "engines": {
        "node": ">=6.0.0"
    }
}

configurations

The following are configurations that can be used

Option 1: basic

ESLint without React.

{
    "eslintConfig": {
        "extends": "lb"
    }
}

Option 2: react

A package for react is exposed in the same package.

{
    "eslintConfig": {
        "extends": "lb/react"
    }
}

Ignore

I recommend creating a .eslintignore file and adding the following:

build
node_modules
*.test.js

scripts

Add a script to package.json

{
  "scripts": {
    "lint": "eslint src"
  }
}

/eslint-config-lb/

    Package Sidebar

    Install

    npm i eslint-config-lb

    Weekly Downloads

    5

    Version

    1.7.3

    License

    GPL-3.0

    Last publish

    Collaborators

    • gruberjl