* Always mock metadata/chrome in OSS * Enable jest env in jest mocks * Exclude jest mocks in karma bundles * Use setupFilesAfterEnv in config * Remove chrome/metadata mock from x-pack * Remove kuery mock * Add missing mock to SIEM test * Fix typo in mock import * Remove top level capabilities x-pack mock * Move kfetch mock to ui/public * Move moment-timezone to mocks file * Unmock kfetch in kfetch specific tests * Make kfetch mock manual * Removed unnecessary jest.mock * Remove kfetch unmocks |
||
---|---|---|
.. | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
javascript.js | ||
jest.js | ||
package.json | ||
README.md | ||
restricted_globals.js | ||
typescript.js |
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'
]
}