README
eslint-config-mailonline
MailOnline ESLint configuration.
Usage
Add eslint-config-mailonline
as a development dependency:
npm install eslint-config-mailonline --save-dev
Create ESLint configuration file (.eslintrc
) that extends eslint-config-mailonline
:
{
"extends": "mailonline"
}
Extended configs
The package also has separate entry points for some environments. Simply extend from the entry point as described below, either in a folder-specific eslint config, or additionally to the root config, e.g.:
{
"extends": [
"mailonline",
"mailonline/jest",
"mailonline/react"
]
}
jest
{
"extends": "mailonline/jest"
}
mocha
{
"extends": "mailonline/mocha"
}
react
{
"extends": "mailonline/react"
}
flowtype
{
"extends": "mailonline/flowtype"
}
lodash
{
"extends": "mailonline/lodash"
}
webpack
{
"extends": "mailonline/webpack"
}
Breaking changes
Any changes to this package that might cause code using it to not validate anymore, will be a semver-major change.