kibana/packages/eslint-config-kibana
Larry Gregory d9d9fb22fb
Disallow use of "dangerouslySetInnerHTML" on React components (#17759)
Disallows use of "dangerouslySetInnerHTML" on React components, except where explicitly whitelisted
2018-04-20 14:22:10 -04:00
..
.eslintrc.js Disallow use of "dangerouslySetInnerHTML" on React components (#17759) 2018-04-20 14:22:10 -04:00
.gitignore
.npmignore
jest.js Use Jest on cli tests (#16389) 2018-04-10 12:12:47 +02:00
package.json [kbn-pm] Include Kibana's transitive _projects_ in build (#16813) 2018-03-12 11:00:27 +01: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

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