eslint-config-fixable

0.1.0 • Public • Published

eslint-config-fixable

A eslint preset with all the fixable rules. If you notice a rule missing, send me a pr!

Installation

npm install -D eslint-config-fixable

Then, add it to your eslint config (a .eslintrc or your package.json, for instance).

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

Usage

To fix all the fixable errors, run eslint with the fix option

eslint --fix

There are a number of rules that are es6-specific, so you may also want to consider using babel-eslint as your parser

{
    "extends": "eslint-config-fixable",
    "parser": "babel-eslint"
}
 
 
# Disclaimer
 
I'm not sure the preset will fix the fixable eslint errors to the values you want -- for instance, I correct comparisons
to use yoda because eslint seems to suggest it.  Since everything is fixable automatically, I'm pretty amenable to changes,
so don't be shy about sending a pr.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i eslint-config-fixable

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • douglas.wade