eslint-config-elao

0.1.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i eslint-config-elao

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nervo