eslint-config-spur
v0.0.2
Published
Extends eslint-config-airbnb-base with some basic overrides for the style to be used on the Spur Framework based packages.
Downloads
11
Readme
eslint-config-spur
Extends eslint-config-airbnb with some basic overrides for the style to be used on the Spur based packages.
This package provides Spur's .eslintrc as an extensible shared config. We extend eslint-config-airbnb-base.
Usage
We export three ESLint configurations for your usage.
The export lints ES6/2015+. It requires eslint
.
npm install --save-dev eslint-config-spur eslint
- add
"extends": "spur"
to your .eslintrc
See Airbnb's Javascript styleguide and the ESlint config docs for more information.
Major differences
The main difference between this config and airbnb's is a set of minor adjustments. This will change overtime as we conduct more reviews of our process.
- Console logs are allowed, but warnings are reported.
- Double equals (
==
) is permitted for one special case:== null
. This allows you to determine equality withundefined
and/ornull
in one statement. - Comma dangle is turned off. Some consider this good practice, some don't. We don't.