$ npm install @chocolateboy/eslint-config
Add this to your
.eslintrc.js (or equivalent) file:
moduleexports =extends: "@chocolateboy"
This is mostly compatible with the StandardJS rules. The main differences are:
- 4 spaces (rather than 2)
- dangling commas are allowed in multi-line lists
- multiple spaces are allowed in requires/imports and object literals
The following NPM scripts are available:
- test - validate the ESLint rules
COPYRIGHT AND LICENSE
Copyright © 2018 by chocolateboy.
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.