eslint-config-sensu-flow
Version:
Sensu's ESLint config (for use with Flow.)
58 lines (42 loc) • 1.1 kB
Markdown
# eslint-config-sensu-flow
This package provides Sensu's Flowtype ESLint settings as an extensible
configuration.



## Usage
First, add the package to your project.
```sh
yarn add --dev eslint eslint-config-sensu-flow
# or with npm
npm install --save-dev eslint eslint-config-sensu-flow
```
If you did not already have an `.eslintrc` file you can add one.
```sh
./node_modules/.bin/eslint --init
```
Finally, add the following to your `.eslintrc`.
```json
{
"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.
```json
{
"extends": [
"sensu",
"sensu-flow",
"sensu-react"
],
"rules": {
"react/prop-types": "off",
}
}
```