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).
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
# Disclaimer I'm not sure the preset will fix the fixable eslint errors to the values you want -- for instance, I correct comparisonsto 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.