eslint-plugin-dollarshaveclub
v1.0.2
Published
Dollar Shave Club's official JavaScript Style Rules. Linting code to shave the world!
Downloads
27
Readme
eslint-plugin-dollarshaveclub
Dollar Shave Club's official custom JavaScript rules. Linting code to shave the world!
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-eslint-dollarshaveclub
:
$ npm install eslint-plugin-dollarshaveclub --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-dollarshaveclub
globally.
Usage
Add eslint-plugin-dollarshaveclub
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"extends": [
"plugin:dollarshaveclub/ember"
],
"plugins": [
"dollarshaveclub"
]
}
Supported Rules
Contributing
Working with ESLint
First, read about working with plugins. Then read about writing custom rules.
Using Esprima's parser is also very helpful with understanding the ESTree Spec. Here is an example
ESLint uses Mocha_ for testing so please install it globaly:
npm install -g mocha