littleBits writes a lot of JavaScript. We use ESLint to catch basic errors and enforce a coding style that we think optimizes modernity and clarity.
All projects by littleBits written in JavaScript should use the ESLint configuration found here. Any disagreements should be opened as Github Issues on this repo.
-
Have ESLint integrated into your editor of choice.
-
Do
npm install --save-dev eslint-config-littlebits
to bring the config into your project. -
Do
echo 'extends: littlebits' > .eslintrc
to apply this config to your project.
If your project has special needs you may apply project-specific overrides as documented here.