eslint-config-glazed
v0.0.7
Published
Glazed.io's ESLint config, following our styleguide (inspired by Airbnb!)
Downloads
16
Readme
eslint-config-glazed
This is an opinionated ESLint configuration for Glazed. It was inspired by @earnest/eslint-config-es7, but we wanted to make it further opinionated.
It supports ES6, ES7, Babel, and some other opinionated rules! It's amazing :boom:!
Install
First add the configuration to your package.json
file:
npm i --save-dev eslint-config-glazed
Then create a new file called .eslintrc
, and its contents should be:
{
"extends": "glazed"
}
That's it! Of course you will need to know how to use ESLint from here.
If you need to write tests using mocha
, you can extend the mocha configuration:
{
"extends": "glazed/mocha"
}
This adds support for mocha
environment, and also rules that support expect
.