kibana/packages/elastic-eslint-config-kibana
Mikhail Shustov 4917df30b9
Update typescript eslint to v4.8 (#83520)
* update deps

* update rules

use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead

* fix or mute all lint errors

* react-hooks eslint plugin fails on ? syntax

* fix wrong typings in viz

* remove React as a global type

* fix eslint errors

* update version to 4.8.1

* fix a new error
2020-11-18 18:23:08 +01:00
..
.eslintrc.js chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
.gitignore chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
.npmignore chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
javascript.js chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
jest.js chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
package.json chore(NA): move into single pkg json (#80015) 2020-11-02 21:18:52 +00:00
react.js chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
README.md chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
restricted_globals.js chore(NA): add elastic prefix to eslint-config-kibana (#76059) 2020-08-31 20:13:06 +01:00
typescript.js Update typescript eslint to v4.8 (#83520) 2020-11-18 18:23:08 +01: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'
  ]
}