kibana/packages/eslint-config-kibana
CJ Cenizal 33fa8c0c6b
Add eslint rule for checking React Hooks best practices. (#33901)
* Rename Console's useResizeChecker to applyResizeCheckerToEditors, to bypass greedy react-hooks lint rule.
2019-03-26 20:18:14 -07:00
..
.eslintrc.js Add eslint rule for checking React Hooks best practices. (#33901) 2019-03-26 20:18:14 -07:00
.gitignore
.npmignore
jest.js Update versions of @babel/parser and @babel/types (#23268) 2018-09-25 14:35:31 +03:00
package.json Add eslint rule for checking React Hooks best practices. (#33901) 2019-03-26 20:18:14 -07:00
README.md
restricted_globals.js

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