eslint-config-airbnb-improved

Eslint configuration based on Airbnb with some improvements

Usage no npm install needed!

<script type="module">
  import eslintConfigAirbnbImproved from 'https://cdn.skypack.dev/eslint-config-airbnb-improved';
</script>

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.