* Warn in Typescript when using Array.flat() or .flatMap() without polyfill * Update ecma version provided to babel in eslint * Update per review comments
32 lines
473 B
JavaScript
32 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',
|
|
},
|
|
],
|
|
],
|
|
}
|
|
};
|