@selfpub/eslint-config
v2.1.0
Published
Selfpub's base JS ESLint config.
Downloads
14
Maintainers
Readme
@selfpub/eslint-config
Selfpub’s config for eslint.
Install
Install this package, as well as the parts of Babel you wish to use:
With Yarn
$ yarn add --dev --exact eslint @selfpub/eslint-config
With npm
npm install eslint @selfpub/eslint-config --save-dev --save-exact
Usage
Via .eslintrc (Recommended)
Then, in your Eslint configuration, extend your eslint config you’d like:
{
"extends": "@selfpub/eslint-config"
}
A few ESLint plugins are supported as well:
- [eslint-plugin-flowtype]
- [eslint-plugin-react]
- [eslint-plugin-standard]
- [eslint-plugin-unicorn]
Add extra exclusions for the plugins you use like so:
{
"extends": [
"@selfpub/eslint-config",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"prettier/unicorn"
]
}