* [kbn-plugin-generator] add plugin generator to the repo * [plugin-generator] use snake_case plugin name for directory name * [plugin-generator] fix typo * [plugin-generator] remove translation support until we resume i18n efforts * [yarn] update lockfile * [mocha] remove plugin-generator selector from mocha tests * [plugin-generator] update generated readme to recommend yarn * [plugin-generator] add readme to generator pacakge * [plugin-generator] link from plugin-resource docs * [plugin-generator] mention very important `kbn bootstrap` script * [plugin-generator] rework some parts of the README * [plugin-generator] log actual directory name with system separators * [plugin-generator] include bootstrap/yarn preinstall check script
45 lines
998 B
JavaScript
45 lines
998 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'@elastic/eslint-config-kibana',
|
|
'@elastic/eslint-config-kibana/jest',
|
|
],
|
|
|
|
settings: {
|
|
'import/resolver': {
|
|
'@elastic/eslint-import-resolver-kibana': {
|
|
rootPackageName: 'kibana',
|
|
kibanaPath: '.',
|
|
},
|
|
},
|
|
},
|
|
|
|
overrides: [
|
|
// Enable Prettier
|
|
{
|
|
files: [
|
|
'.eslintrc.js',
|
|
'packages/kbn-build/**/*',
|
|
'packages/kbn-plugin-generator/**/*',
|
|
],
|
|
plugins: ['prettier'],
|
|
rules: Object.assign(
|
|
{ 'prettier/prettier': 'error' },
|
|
require('eslint-config-prettier').rules,
|
|
require('eslint-config-prettier/react').rules
|
|
),
|
|
},
|
|
|
|
// files not transpiled by babel can't using things like object-spread
|
|
{
|
|
files: [
|
|
'.eslintrc.js',
|
|
'packages/kbn-plugin-helpers/**/*',
|
|
'packages/kbn-plugin-generator/**/*',
|
|
],
|
|
rules: {
|
|
'prefer-object-spread/prefer-object-spread': 'off',
|
|
},
|
|
},
|
|
],
|
|
};
|