No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
packages
.gitignore
.npmignore
README.md

README.md

eslint-config-1stdibs

See documentation on ESLint shareable configs: http://eslint.org/docs/developer-guide/shareable-configs.html

Installation

npm install --save-dev eslint-config-1stdibs

Usage

Create an .eslintrc like the following:

{
    "extends": [
        "1stdibs"
    ]
}

The main 1stdibs file contains default rules useful for all environments There are also additional files that add specialty rules:

  • browser
  • node
  • react
  • jasmine.

These can be added as follows:

{
    "extends": [
        "1stdibs",
        "1stdibs/react",
        "1stdibs/node"
    ]
}

Projects can override rules simply by adding additional configuration to the file:

{
    "extends": [
        "1stdibs"
    ],
    "rules": {
        "no-bitwise": 0
    }
}