kibana/packages/eslint-config-kibana
Mikhail Shustov 37ec1e1053
Update to TS v4 (#73924)
* bump ts to v4

* MOAR RAM

* fix type errors for OSS

* first pass on x-pack errors

* second pass on x-pack type errors

* 3rd pass on x-pack type-errors

* mute errors if complex cases

* don't delete if spread suffices

* mute other complex cases

* make User fields optional

* fix optional types

* fix tests

* fix typings for time_range

* fix type errors in x-pack/tests

* rebuild kbn-pm

* remove leftovers from master update

* fix alert tests

* [Telemetry Checker] TS4 Fixes

* bump to 4.0.1-rc

* fix new errors in master

* bump typescript-eslint to version supporting TS v4 syntax

* fix merge commit errors

* update to the stable TS version 4.0.2

* bump ts-eslint to version supporting ts v4

* fix typo

* fix type errors after merge

* update ts in another new package.json

* TEMP: remove me

* Revert "TEMP: remove me"

This reverts commit dc0fc3bae6.

* [Telemetry] Update snapshot for new TS4 SyntaxKind

* bump prettier to support TS v4 syntax

* fix prettier rules

* last style change

* fix new type errors

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2020-08-27 10:28:02 +02:00
..
.eslintrc.js [ES UI Shared] Monaco XJSON (#67485) 2020-06-04 13:43:21 +02:00
.gitignore
.npmignore
javascript.js ensure prettier overrides take precedence, remove style rules 2019-12-14 17:39:10 -07:00
jest.js chore: improve support for mjs file extension (#70186) 2020-06-30 16:13:28 +02:00
package.json Update to TS v4 (#73924) 2020-08-27 10:28:02 +02:00
react.js ensure prettier overrides take precedence, remove style rules 2019-12-14 17:39:10 -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 Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) 2020-08-05 17:32:19 +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'
  ]
}