kibana/packages/eslint-config-kibana
Tim Roes 604a989f1f
Style guide cleanup (#46574) (#46763)
* Enable one-var rule

* Prevent built-in extension

* Group more rules into modern language features

* Fix typing error use eslint disable instead

* Improve wording slightly
2019-09-27 12:45:27 +02:00
..
.eslintrc.js chore(NA): merge and solve conflicts with 7.x (#34645) 2019-04-05 19:14:26 +01:00
.gitignore Move eslint-config-kibana into core (#12725) 2017-07-25 10:02:14 +02:00
.npmignore Move eslint-config-kibana into core (#12725) 2017-07-25 10:02:14 +02:00
javascript.js chore(NA): merge and solve conflicts with 7.x (#34645) 2019-04-05 19:14:26 +01:00
jest.js Improve jest mocking infrastructure (#38760) (#39033) 2019-06-15 09:45:40 +02:00
package.json [7.x] Update eslint related packages (#46656) (#46726) 2019-09-26 14:32:53 -07:00
README.md [eslint-config-kibana] Add jest plugin and settings (#13090) 2017-07-28 14:00:19 +02:00
restricted_globals.js [eslint-config-kibana] expand list of restricted globals (#15798) 2018-01-03 10:52:30 -07:00
typescript.js Style guide cleanup (#46574) (#46763) 2019-09-27 12:45:27 +02:00

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