eslint-config-springworks
v7.1.0
Published
ESLint configurations used by Springworks
Downloads
2,657
Readme
eslint-config-springworks
ESLint configurations used by Springworks.
Installation
$ npm i -D eslint eslint-plugin-mocha eslint-config-springworks
When extending springworks/babel
, also install babel-eslint
and eslint-plugin-import
$ npm i -D babel-eslint eslint-plugin-import
Usage
This package includes the configurations:
springworks
- default configurationspringworks/mocha
- mocha test configurationspringworks/babel
- extends the default configuration for use with babel and ES6 features
Place an .eslintrc
file in the project root that extends either springworks
or springworks/babel
:
{
"extends": "springworks"
}
Place a second .eslintrc
file in the test folder that extends springworks/mocha
:
{
"extends": "springworks/mocha"
}