mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
## Summary The `/packages` folder at the root of the Kibana repository used to contain a lot of packages. In the context of SKA, they have been gradually moved to various locations: * `src/platform/packages` * `x-pack/platform/packages` * `src/core/packages` Currently, only `devOnly: true` packages are left in this folder. This comprises libraries for CLI scripts as well as testing utilities. With this PR, we are moving ~half of these packages under `src/platform/packages/(private|shared)/`. In particular, we are moving those packages that are being used from platform and/or solutions. Since they are `"devOnly": true`, this means they are ONLY used from tests, cypress tests, storybook configs, ./scripts/ folders inside some modules, or other non-prod-time logic. Nonetheless, they are effectively referenced from platform and/or solutions code, hence I decided they should be placed under `platform` folders. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
.eslintrc.js | ||
.gitignore | ||
javascript.js | ||
jest.js | ||
kibana.jsonc | ||
package.json | ||
react.js | ||
README.mdx | ||
restricted_globals.js | ||
typescript.js |
--- id: kibDevDocsOpsEslintConfig slug: /kibana-dev-docs/ops/eslint-config title: "@kbn/eslint-config" description: A package holding the main eslint configs on Kibana date: 2022-05-16 tags: ['kibana', 'dev', 'contributor', 'operations', 'eslint', 'custom', 'config'] --- This package is used to group and provide the eslint configurations used by the Kibana team. It defines default plugins, env, parserOptions and rules for javascript, typescript, and react code bases. Optionally it can also be used with jest as explained below. ## Usage To use this eslint config, it needs to be referenced in the `.eslintrc` file: ```javascript module.exports = { extends: [ '@kbn/eslint-config' ] } ``` ## Optional jest eslint config If [jest test runner](https://facebook.github.io/jest/) is used, the `@kbn/eslint-config/jest` config can be extended as well to use `eslint-plugin-jest` and add settings specific to it: ```javascript module.exports = { extends: [ '@kbn/eslint-config', '@kbn/eslint-config/jest' ] } ```