This is a sharable config for ESLint to allow me to keep a consistent linter configuration between my personal projects.
It's based on, but diverges from Facebook's ESLint configuration, which I helped develop. Mostly, it's stricter.
Adding to a project
$ npm i --save-dev eslint eslint-config-bgw $ echo 'extends: bgw' >> .eslintrc
Notes on SemVer
This project will follow Semantic Versioning. To quote the specification:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards-compatible manner, and
- PATCH version when you make backwards-compatible bug fixes.
Because tightening the configuration (and therefore disallowing code that was previously valid) is potentially breaking, except in the case of warnings, I will increment the MAJOR version every time I tighten the configuration. If I loosen the configuration, I'll increment the MINOR version.
This means that I expect the version number to grow quickly. Version numbers say nothing about the maturity of a project.