Integrate Airbnb lint rules
Integrate Airbnb JS styling rules, https://github.com/airbnb/javascript
It makes sense to disable some rules that will require major changes in the code (which means we lose commit history).
Disable:
indent
import/no-unresolved
Currently, we remove dangling commas, however the styling guides recommends to add them (so use comma-dangle
). Quoted from the styling guide:
Why? This leads to cleaner git diffs. Also, transpilers like Babel will remove the additional trailing comma in the transpiled code which means you don’t have to worry about the trailing comma problem in legacy browsers.
Which makes sense indeed