eslint-config-sensu-flow
v1.3.0
Published
Sensu's ESLint config (for use with Flow.)
Downloads
19
Maintainers
Readme
eslint-config-sensu-flow
This package provides Sensu's Flowtype ESLint settings as an extensible configuration.
Usage
First, add the package to your project.
yarn add --dev eslint eslint-config-sensu-flow
# or with npm
npm install --save-dev eslint eslint-config-sensu-flowIf you did not already have an .eslintrc file you can add one.
./node_modules/.bin/eslint --initFinally, add the following to your .eslintrc.
{
"extends": [
"sensu",
"sensu-flow"
]
}React
When used in concert with React you may want to remove the prop-types rule as
it will likely be duplicate effort. To do so add the following to your
.eslintrc file.
{
"extends": [
"sensu",
"sensu-flow",
"sensu-react"
],
"rules": {
"react/prop-types": "off",
}
}