kibana/packages/elastic-eslint-config-kibana
Kibana Machine 4b712fda4b
[kbn/test] move types/ftr into src (#99555) (#100228)
* [kbn/test] move types/ftr into src

* Apply eslint updates

* fix import of Lifecycle type

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-17 14:49:48 -04:00
..
.eslintrc.js [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
.gitignore
.npmignore
BUILD.bazel chore(NA): moving @elastic/eslint-config-kibana into bazel (#98648) (#98786) 2021-04-29 18:24:34 +00:00
javascript.js
jest.js
package.json chore(NA): moving @kbn/dev-utils into bazel (#98496) (#98696) 2021-04-29 00:50:19 +00:00
react.js chore(NA): ensure scripts run with --preserve-symlinks (#94046) (#94636) 2021-03-15 18:57:30 -04:00
README.md
restricted_globals.js
typescript.js chore(NA): ensure scripts run with --preserve-symlinks (#94046) (#94636) 2021-03-15 18:57:30 -04:00

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'
  ]
}