kibana/packages/eslint-config-kibana
Court Ewing 271a941621
lint: error on innerHTML and family (#16477)
* lint for innerHTML and family

Browser apis like innerHTML and document.write are dangerous when used
incorrectly, so we should not be using them unless we explicitly opt-out
of the linting rule on a case by case basis.

* add no-unsanitized to eslint peerDependencies
2018-02-04 08:38:37 -05:00
..
.eslintrc.js lint: error on innerHTML and family (#16477) 2018-02-04 08:38:37 -05:00
.gitignore
.npmignore
jest.js
package.json lint: error on innerHTML and family (#16477) 2018-02-04 08:38:37 -05:00
README.md
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'
  ]
}