* update deps * update rules use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead * fix or mute all lint errors * react-hooks eslint plugin fails on ? syntax * fix wrong typings in viz * remove React as a global type * fix eslint errors * update version to 4.8.1 * fix a new error |
||
---|---|---|
.. | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
javascript.js | ||
jest.js | ||
package.json | ||
react.js | ||
README.md | ||
restricted_globals.js | ||
typescript.js |
elastic-eslint-config-kibana
The eslint config used by the kibana team
Usage
To use this eslint config, just install the peer dependencies and reference it
in your .eslintrc
:
{
extends: [
'@elastic/eslint-config-kibana'
]
}
Optional jest config
If the project uses the jest test runner,
the @elastic/eslint-config-kibana/jest
config can be extended as well to use
eslint-plugin-jest
and add settings specific to it:
{
extends: [
'@elastic/eslint-config-kibana',
'@elastic/eslint-config-kibana/jest'
]
}