2017-07-25 10:02:14 +02:00
|
|
|
# eslint-config-kibana
|
|
|
|
|
|
|
|
The eslint config used by the kibana team
|
2017-07-28 14:00:19 +02:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
To use this eslint config, just install the peer dependencies and reference it
|
|
|
|
in your `.eslintrc`:
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
extends: [
|
|
|
|
'@elastic/eslint-config-kibana'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Optional jest config
|
|
|
|
|
|
|
|
If the project uses the [jest test runner](https://facebook.github.io/jest/),
|
|
|
|
the `@elastic/eslint-config-kibana/jest` config can be extended as well to use
|
|
|
|
`eslint-plugin-jest` and add settings specific to it:
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
extends: [
|
|
|
|
'@elastic/eslint-config-kibana',
|
|
|
|
'@elastic/eslint-config-kibana/jest'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|