kibana/packages/eslint-config-kibana/.eslintrc.js
Wylie Conlon 87ee9c2a9b
Warn in Typescript when using Array.flat() or .flatMap() without polyfill (#37558)
* Warn in Typescript when using Array.flat() or .flatMap() without polyfill

* Update ecma version provided to babel in eslint

* Update per review comments
2019-06-03 13:52:38 -04:00

33 lines
473 B
JavaScript

module.exports = {
extends: [
'./javascript.js',
'./typescript.js',
'./jest.js',
],
plugins: ['@kbn/eslint-plugin-eslint'],
parserOptions: {
ecmaVersion: 2018
},
env: {
es6: true,
},
rules: {
'@kbn/eslint/module_migration': [
'error',
[
{
from: 'expect.js',
to: '@kbn/expect',
},
{
from: 'x-pack',
toRelative: 'x-pack',
},
],
],
}
};