eslint-config-sensu-react
Version:
Sensu's ESLint config (for React.)
38 lines (26 loc) • 800 B
Markdown
# eslint-config-sensu-react
This package provides Sensu's React & JSX ESLint settings as an extensible
configuration.



## Usage
First, add the package to your project.
```sh
yarn add --dev eslint eslint-config-sensu-react
# or with npm
npm install --save-dev eslint eslint-config-sensu-react
```
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-react"
]
}
```