Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-airbnb-improved

oprogramador207MIT5.0.3

Eslint configuration based on Airbnb with some improvements

eslint, airbnb

readme

eslint-config-airbnb-improved

MIT License node:? Build Status

NPM status

Eslint plugin based on Airbnb

install

npm install --save-dev eslint-config-airbnb-improved

usage

in .eslinrc:

{
  "extends": "eslint-config-airbnb-improved"
}

Of course, you can overwrite any rules to satisfy your needs.

in package.json:

{
  "scripts": {
    "lint": "eslint *.js app src",
  }
}

run npm run lint

Major differences with standard Airbnb:

  • Required sorting of imports and keys in object
  • Required empty line before return
  • Allowing ++ operator
  • Allowing not using this keyword in object methods.

Why this plugin?

  • Because some of Airbnb rules make coding harder with no good reason.
  • Because Airbnb does not specify many coding rules.