0.6.0 • Published 7 years ago

eslint-config-alexguerrero v0.6.0

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

eslint-config-alexguerrero

ESLint rules according to Alex Guerrero's personal preference

These are the ESLint rules I use in my own projects. They are completely opinionated but they can serve as inspiration or as a starter point.

Installation

Install the configuration by running:

$ npm install --save-dev eslint eslint-plugin-promise eslint-config-alexguerrero

Usage

Once the eslint-config-alexguerrero package is installed, you can use it by specifying alexguerrero in the extends section of your ESLint configuration.

{
  "extends": "alexguerrero",
  "rules": {
    // Add here the rules you want to overwrite the rules of this config
  }
}

Using this config along eslint:recommended

There are several rules in the eslint:recommended ruleset these rules are not opinionated about that you might want to enforce in your project.

To use this ESLint config in conjunction with ESLint's recommended rule set, extend them both, making sure to list alexguerrero last:

{
  "extends": [
    "eslint:recommended",
    "alexguerrero"
  ],
  "rules": {
    // Additional, per-project rules...
  }
}

To see how the alexguerrero config compares with eslint:recommended, refer to the source code of rules placed into the rules folder.

License

Unlicense

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago