@rushplay/eslint-config-rushplay
v4.0.0
Published
RushPlay’s shareable ESLint config
Downloads
72
Readme
eslint-config-rushplay
RushPlay’s shareable ESLint config
This config uses eslint-config-pedant
as base and inteded to be used alongside with formatter like prettier
.
Installation
Basic
Install:
yarn add --dev eslint eslint-plugin-{dependencies,import,jest} @rushplay/eslint-config-rushplay
Add @rushplay/rushplay
to your .eslintrc
’s extends
property:
{
"extends": "@rushplay/rushplay"
}
React extensions
Requires basic config.
Install additional plugin:
yarn add --dev eslint-plugin-react
For projects using React also add @rushplay/rushplay/react
:
{
"extends": [
"@rushplay/rushplay",
+ "@rushplay/rushplay/react"
]
}
Redux extensions
Requires basic config.
yarn add --dev @rushplay/eslint-plugin-redux-effects
{
"extends": [
"@rushplay/rushplay",
+ "@rushplay/rushplay/redux"
]
}
Emotion extensions
Requires basic config.
yarn add --dev eslint-plugin-emotion
{
"extends": [
"@rushplay/rushplay",
+ "@rushplay/rushplay/emotion"
]
}