0.1.0 • Published 7 years ago

eslint-config-elao v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eslint-config-elao

Elao ESLint configuration

A configurable ESLint configuration used in Elao projects.

Installation

The config require the eslint package.

$ npm install --save-dev eslint eslint-config-elao

Usage

Create a .eslintrc file with this following configuration:

{
  "extends": "eslint-config-elao"
}

Then run the following command:

$ eslint "path/to/**/*.js"

Extending the config

Add a "rules" key to your config and add your overrides rules there.

For example, to change the indentation from 2 spaces to 4 and turn off the number-leading-zero rule:

{
  "extends": "eslint-config-elao",
  "rules": {
    "indentation": 4,
    "number-leading-zero": null
  }
}

Changelog

License