eslint-config-llama
v3.0.0
Published
The preferred eslint config of llamas everywhere.
Downloads
22
Maintainers
Readme
eslint-config-llama
A strict eslint configuration, designed to improve clarity, and enforce quality.
Usage
If you're new to eslint, you'll want to start here instead. You'll probably want a config like AirBnB or Standard.
Install the config:
$ npm install --save-dev eslint-config-llama
Stick this in your .eslintrc.js
file:
const eslint = exports;
eslint.extends = [
'eslint:recommended',
'llama',
];
The llama config customizes the eslint:recommended
preset. Be sure to include it in the array.
Why
I'm opinionated when it comes to code style, and my .eslintrc.js
file is bloated with rules. This becomes a problem as my style evolves, since rules in my older projects need to be manually updated.
By sticking them in a published, versioned configuration, greenkeeper can help me keep style consistent across all my projects.
Philosophy
Code should be:
- Concise
- Consistent
- Documented
- Simple
This config will do everything it can to enforce those qualities.
If you're looking for an unopinionated super-chill config that just works with your existing style, you won't find it here.
Dealbreakers
This config enforces:
- 2 space indentation.
const
overlet
, nevervar
.- Global strict mode.
- Space before function parameters.