kibana/packages/elastic-eslint-config-kibana
Spencer 41129dbd9c
[7.x] [eslint] add rule to forbid async forEach bodies (#111637) (#112178)
* [eslint] add rule to forbid async forEach bodies (#111637)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/event_log/server/es/init.ts

* remove unnecessary async forEach

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-14 20:33:48 -04:00
..
.eslintrc.js [7.x] [eslint] add rule to forbid async forEach bodies (#111637) (#112178) 2021-09-14 20:33:48 -04:00
.gitignore
.npmignore
BUILD.bazel chore(NA): moving @kbn/es-query to babel transpiler (#107281) (#107318) 2021-07-30 16:02:22 -04:00
javascript.js
jest.js
package.json
react.js
README.md
restricted_globals.js
typescript.js

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