diff --git a/.eslintrc.js b/.eslintrc.js index 8a981f07dcd35..5ff3e21358271 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1659,5 +1659,24 @@ module.exports = { '@typescript-eslint/prefer-ts-expect-error': 'error', }, }, + + /** + * Disallow `export *` syntax in plugin/core public/server/common index files and instead + * require that plugins/core explicitly export the APIs that should be accessible outside the plugin. + * + * To add your plugin to this list just update the relevant glob with the name of your plugin + */ + { + files: [ + 'src/core/{server,public,common}/index.ts', + 'src/plugins/*/{server,public,common}/index.ts', + 'src/plugins/*/*/{server,public,common}/index.ts', + 'x-pack/plugins/*/{server,public,common}/index.ts', + 'x-pack/plugins/*/*/{server,public,common}/index.ts', + ], + rules: { + '@kbn/eslint/no_export_all': 'error', + }, + }, ], }; diff --git a/packages/kbn-eslint-plugin-eslint/BUILD.bazel b/packages/kbn-eslint-plugin-eslint/BUILD.bazel index 0ea6a4a80be06..2677e88927ab3 100644 --- a/packages/kbn-eslint-plugin-eslint/BUILD.bazel +++ b/packages/kbn-eslint-plugin-eslint/BUILD.bazel @@ -6,6 +6,7 @@ PKG_REQUIRE_NAME = "@kbn/eslint-plugin-eslint" SOURCE_FILES = glob( [ "rules/**/*.js", + "helpers/**/*.js", "index.js", "lib.js", ], diff --git a/packages/kbn-eslint-plugin-eslint/__fixtures__/bar.ts b/packages/kbn-eslint-plugin-eslint/__fixtures__/bar.ts new file mode 100644 index 0000000000000..16c40fc9bfd7d --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/__fixtures__/bar.ts @@ -0,0 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +/* eslint-disable no-restricted-syntax */ + +export class Bar {} diff --git a/packages/kbn-eslint-plugin-eslint/__fixtures__/baz.ts b/packages/kbn-eslint-plugin-eslint/__fixtures__/baz.ts new file mode 100644 index 0000000000000..5ee1d85aa253d --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/__fixtures__/baz.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +/* eslint-disable no-restricted-syntax */ + +export const one = 1; +export const two = 2; +export const three = 3; diff --git a/packages/kbn-eslint-plugin-eslint/__fixtures__/foo.ts b/packages/kbn-eslint-plugin-eslint/__fixtures__/foo.ts new file mode 100644 index 0000000000000..f97ed79d95437 --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/__fixtures__/foo.ts @@ -0,0 +1,31 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +/* eslint-disable no-restricted-syntax */ + +export type { Bar as ReexportedClass } from './bar'; + +export const someConst = 'bar'; + +// eslint-disable-next-line prefer-const +export let someLet = 'bar'; + +export function someFunction() {} + +export class SomeClass {} + +export interface SomeInterface { + prop: number; +} + +export enum SomeEnum { + a = 'a', + b = 'b', +} + +export type TypeAlias = string[]; diff --git a/packages/kbn-eslint-plugin-eslint/__fixtures__/top.ts b/packages/kbn-eslint-plugin-eslint/__fixtures__/top.ts new file mode 100644 index 0000000000000..bf924e011053c --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/__fixtures__/top.ts @@ -0,0 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +/* eslint-disable no-restricted-syntax */ + +export * from './foo'; diff --git a/packages/kbn-eslint-plugin-eslint/helpers/codegen.js b/packages/kbn-eslint-plugin-eslint/helpers/codegen.js new file mode 100644 index 0000000000000..e55a946e8ad19 --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/helpers/codegen.js @@ -0,0 +1,82 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +const t = require('@babel/types'); +const { default: generate } = require('@babel/generator'); + +/** @typedef {import('./export_set').ExportSet} ExportSet */ + +/** + * Generate code for replacing a `export * from './path'`, ie. + * + * export type { foo } from './path' + * export { bar } from './path' + + * @param {ExportSet} exportSet + * @param {string} source + */ +const getExportCode = (exportSet, source) => { + const exportedTypes = exportSet.types.size + ? t.exportNamedDeclaration( + undefined, + Array.from(exportSet.types).map((n) => t.exportSpecifier(t.identifier(n), t.identifier(n))), + t.stringLiteral(source) + ) + : undefined; + + if (exportedTypes) { + exportedTypes.exportKind = 'type'; + } + + const exportedValues = exportSet.values.size + ? t.exportNamedDeclaration( + undefined, + Array.from(exportSet.values).map((n) => + t.exportSpecifier(t.identifier(n), t.identifier(n)) + ), + t.stringLiteral(source) + ) + : undefined; + + return generate(t.program([exportedTypes, exportedValues].filter(Boolean))).code; +}; + +/** + * Generate code for replacing a `export * as name from './path'`, ie. + * + * import { foo, bar } from './path' + * export const name = { foo, bar } + * + * @param {string} nsName + * @param {string[]} exportNames + * @param {string} source + */ +const getExportNamedNamespaceCode = (nsName, exportNames, source) => { + return generate( + t.program([ + t.importDeclaration( + exportNames.map((n) => t.importSpecifier(t.identifier(n), t.identifier(n))), + t.stringLiteral(source) + ), + t.exportNamedDeclaration( + t.variableDeclaration('const', [ + t.variableDeclarator( + t.identifier(nsName), + t.objectExpression( + exportNames.map((n) => + t.objectProperty(t.identifier(n), t.identifier(n), false, true) + ) + ) + ), + ]) + ), + ]) + ).code; +}; + +module.exports = { getExportCode, getExportNamedNamespaceCode }; diff --git a/packages/kbn-eslint-plugin-eslint/helpers/export_set.js b/packages/kbn-eslint-plugin-eslint/helpers/export_set.js new file mode 100644 index 0000000000000..fb1b24a34878c --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/helpers/export_set.js @@ -0,0 +1,34 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +/** + * Helper class to collect exports of different types, either "value" exports or "type" exports + */ +class ExportSet { + constructor() { + /** @type {Set} */ + this.values = new Set(); + + /** @type {Set} */ + this.types = new Set(); + } + + get size() { + return this.values.size + this.types.size; + } + + /** + * @param {'value'|'type'} type + * @param {string} value + */ + add(type, value) { + this[type + 's'].add(value); + } +} + +module.exports = { ExportSet }; diff --git a/packages/kbn-eslint-plugin-eslint/helpers/exports.js b/packages/kbn-eslint-plugin-eslint/helpers/exports.js new file mode 100644 index 0000000000000..b7af8e83d7661 --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/helpers/exports.js @@ -0,0 +1,206 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +const Fs = require('fs'); +const Path = require('path'); +const ts = require('typescript'); +const { REPO_ROOT } = require('@kbn/dev-utils'); +const { ExportSet } = require('./export_set'); + +/** @typedef {import("@typescript-eslint/types").TSESTree.ExportAllDeclaration} ExportAllDeclaration */ +/** @typedef {import("estree").Node} Node */ +/** @typedef {(path: string) => ts.SourceFile} Parser */ +/** @typedef {ts.Identifier|ts.BindingName} ExportNameNode */ + +const RESOLUTION_EXTENSIONS = ['.js', '.json', '.ts', '.tsx', '.d.ts']; + +/** @param {ts.Statement} node */ +const hasExportMod = (node) => node.modifiers?.some((m) => m.kind === ts.SyntaxKind.ExportKeyword); + +/** @param {string} path */ +const safeStat = (path) => { + try { + return Fs.statSync(path); + } catch (error) { + if (error.code === 'ENOENT') { + return undefined; + } + throw error; + } +}; + +/** + * @param {string} dir + * @param {string} specifier + * @returns {string|undefined} + */ +const normalizeRelativeSpecifier = (dir, specifier) => { + if (specifier.startsWith('src/') || specifier.startsWith('x-pack/')) { + return Path.resolve(REPO_ROOT, specifier); + } + if (specifier.startsWith('.')) { + return Path.resolve(dir, specifier); + } +}; + +/** + * @param {string} basePath + * @returns {string | undefined} + */ +const checkExtensions = (basePath) => { + for (const ext of RESOLUTION_EXTENSIONS) { + const withExt = `${basePath}${ext}`; + const stats = safeStat(withExt); + if (stats?.isFile()) { + return withExt; + } + } +}; + +/** + * @param {string} dir + * @param {string} specifier + * @returns {string|undefined} + */ +const getImportPath = (dir, specifier) => { + const base = normalizeRelativeSpecifier(dir, specifier); + if (!specifier) { + return undefined; + } + + const noExt = safeStat(base); + if (noExt && noExt.isFile()) { + return base; + } + + if (noExt && noExt.isDirectory()) { + return checkExtensions(Path.resolve(base, 'index')); + } + + if (Path.extname(base) !== '') { + return; + } + + return checkExtensions(base); +}; + +/** + * Recursively traverse from a file path to collect all the exported values/types + * from the file. Returns an ExportSet which groups the exports by type, either + * "value" or "type" exports. + * + * @param {Parser} parser + * @param {string} from + * @param {ts.ExportDeclaration} exportFrom + * @param {ExportSet | undefined} exportSet only passed when called recursively + * @param {boolean | undefined} assumeAllTypes only passed when called recursively + * @returns {ExportSet | undefined} + */ +const getExportNamesDeep = ( + parser, + from, + exportFrom, + exportSet = new ExportSet(), + assumeAllTypes = false +) => { + const specifier = ts.isStringLiteral(exportFrom.moduleSpecifier) + ? exportFrom.moduleSpecifier.text + : undefined; + + if (!specifier) { + return undefined; + } + + const importPath = getImportPath(Path.dirname(from), specifier); + if (!importPath) { + return undefined; + } + + const sourceFile = parser(importPath); + + for (const statement of sourceFile.statements) { + // export function xyz() ... + if (ts.isFunctionDeclaration(statement) && statement.name && hasExportMod(statement)) { + exportSet.add(assumeAllTypes ? 'type' : 'value', statement.name.getText()); + continue; + } + + // export const/let foo = ... + if (ts.isVariableStatement(statement) && hasExportMod(statement)) { + for (const dec of statement.declarationList.declarations) { + exportSet.add(assumeAllTypes ? 'type' : 'value', dec.name.getText()); + } + continue; + } + + // export class xyc + if (ts.isClassDeclaration(statement) && statement.name && hasExportMod(statement)) { + exportSet.add(assumeAllTypes ? 'type' : 'value', statement.name.getText()); + continue; + } + + // export interface Foo {...} + if (ts.isInterfaceDeclaration(statement) && hasExportMod(statement)) { + exportSet.add('type', statement.name.getText()); + continue; + } + + // export type Foo = ... + if (ts.isTypeAliasDeclaration(statement) && hasExportMod(statement)) { + exportSet.add('type', statement.name.getText()); + continue; + } + + // export enum ... + if (ts.isEnumDeclaration(statement) && hasExportMod(statement)) { + exportSet.add(assumeAllTypes ? 'type' : 'value', statement.name.getText()); + continue; + } + + if (ts.isExportDeclaration(statement)) { + const clause = statement.exportClause; + const types = assumeAllTypes || statement.isTypeOnly; + + // export * from '../foo'; + if (!clause) { + const childTypes = getExportNamesDeep( + parser, + sourceFile.fileName, + statement, + exportSet, + types + ); + + if (!childTypes) { + // abort if we can't get all the exported names + return undefined; + } + + continue; + } + + // export * as foo from './foo' + if (ts.isNamespaceExport(clause)) { + exportSet.add(types ? 'type' : 'value', clause.name.getText()); + continue; + } + + // export { foo } + // export { foo as x } from 'other' + // export { default as foo } from 'other' + for (const e of clause.elements) { + exportSet.add(types ? 'type' : 'value', e.name.getText()); + } + continue; + } + } + + return exportSet; +}; + +module.exports = { getExportNamesDeep }; diff --git a/packages/kbn-eslint-plugin-eslint/index.js b/packages/kbn-eslint-plugin-eslint/index.js index a7a9c6b5bebdf..cf96cd9e801ba 100644 --- a/packages/kbn-eslint-plugin-eslint/index.js +++ b/packages/kbn-eslint-plugin-eslint/index.js @@ -12,6 +12,7 @@ module.exports = { 'disallow-license-headers': require('./rules/disallow_license_headers'), 'no-restricted-paths': require('./rules/no_restricted_paths'), module_migration: require('./rules/module_migration'), + no_export_all: require('./rules/no_export_all'), no_async_promise_body: require('./rules/no_async_promise_body'), }, }; diff --git a/packages/kbn-eslint-plugin-eslint/rules/no_export_all.js b/packages/kbn-eslint-plugin-eslint/rules/no_export_all.js new file mode 100644 index 0000000000000..e8d64b247c1a8 --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/rules/no_export_all.js @@ -0,0 +1,84 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +const Fs = require('fs'); +const ts = require('typescript'); +const { getExportCode, getExportNamedNamespaceCode } = require('../helpers/codegen'); +const tsEstree = require('@typescript-eslint/typescript-estree'); + +const { getExportNamesDeep } = require('../helpers/exports'); + +/** @typedef {import("eslint").Rule.RuleModule} Rule */ +/** @typedef {import("@typescript-eslint/parser").ParserServices} ParserServices */ +/** @typedef {import("@typescript-eslint/typescript-estree").TSESTree.ExportAllDeclaration} EsTreeExportAllDeclaration */ +/** @typedef {import("@typescript-eslint/typescript-estree").TSESTree.StringLiteral} EsTreeStringLiteral */ +/** @typedef {import("typescript").ExportDeclaration} ExportDeclaration */ +/** @typedef {import("../helpers/exports").Parser} Parser */ +/** @typedef {import("eslint").Rule.RuleFixer} Fixer */ + +const ERROR_MSG = + '`export *` is not allowed in the index files of plugins to prevent accidentally exporting too many APIs'; + +/** @type {Rule} */ +module.exports = { + meta: { + fixable: 'code', + schema: [], + }, + create: (context) => { + return { + ExportAllDeclaration(node) { + const services = /** @type ParserServices */ (context.parserServices); + const esNode = /** @type EsTreeExportAllDeclaration */ (node); + const tsnode = /** @type ExportDeclaration */ (services.esTreeNodeToTSNodeMap.get(esNode)); + + /** @type Parser */ + const parser = (path) => { + const code = Fs.readFileSync(path, 'utf-8'); + const result = tsEstree.parseAndGenerateServices(code, { + ...context.parserOptions, + comment: false, + filePath: path, + }); + return result.services.program.getSourceFile(path); + }; + + const exportSet = getExportNamesDeep(parser, context.getFilename(), tsnode); + const isTypeExport = esNode.exportKind === 'type'; + const isNamespaceExportWithTypes = + tsnode.exportClause && + ts.isNamespaceExport(tsnode.exportClause) && + (isTypeExport || exportSet.types.size); + + /** @param {Fixer} fixer */ + const fix = (fixer) => { + const source = /** @type EsTreeStringLiteral */ (esNode.source); + + if (tsnode.exportClause && ts.isNamespaceExport(tsnode.exportClause)) { + return fixer.replaceText( + node, + getExportNamedNamespaceCode( + tsnode.exportClause.name.getText(), + Array.from(exportSet.values), + source.value + ) + ); + } + + return fixer.replaceText(node, getExportCode(exportSet, source.value)); + }; + + context.report({ + message: ERROR_MSG, + loc: node.loc, + fix: exportSet?.size && !isNamespaceExportWithTypes ? fix : undefined, + }); + }, + }; + }, +}; diff --git a/packages/kbn-eslint-plugin-eslint/rules/no_export_all.test.js b/packages/kbn-eslint-plugin-eslint/rules/no_export_all.test.js new file mode 100644 index 0000000000000..62a840cb8c91c --- /dev/null +++ b/packages/kbn-eslint-plugin-eslint/rules/no_export_all.test.js @@ -0,0 +1,70 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +const Path = require('path'); + +const { RuleTester } = require('eslint'); +const dedent = require('dedent'); + +const rule = require('./no_export_all'); + +const ruleTester = new RuleTester({ + parser: require.resolve('@typescript-eslint/parser'), + parserOptions: { + sourceType: 'module', + ecmaVersion: 2018, + ecmaFeatures: { + jsx: true, + }, + }, +}); + +ruleTester.run('@kbn/eslint/no_export_all', rule, { + valid: [ + { + code: dedent` + export { bar } from './foo'; + export { bar as box } from './foo'; + `, + }, + ], + + invalid: [ + { + filename: Path.resolve(__dirname, '../__fixtures__/index.ts'), + code: dedent` + export * as baz from './baz'; + export * from './foo'; + `, + + errors: [ + { + line: 1, + message: + '`export *` is not allowed in the index files of plugins to prevent accidentally exporting too many APIs', + }, + { + line: 2, + message: + '`export *` is not allowed in the index files of plugins to prevent accidentally exporting too many APIs', + }, + ], + + output: dedent` + import { one, two, three } from "./baz"; + export const baz = { + one, + two, + three + }; + export type { ReexportedClass, SomeInterface, TypeAlias } from "./foo"; + export { someConst, someLet, someFunction, SomeClass, SomeEnum } from "./foo"; + `, + }, + ], +}); diff --git a/src/plugins/bfetch/common/index.ts b/src/plugins/bfetch/common/index.ts index 9bf326eb4b6e5..b2b02e9ae3ed3 100644 --- a/src/plugins/bfetch/common/index.ts +++ b/src/plugins/bfetch/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109905 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './util'; export * from './streaming'; export * from './buffer'; diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/index.ts b/src/plugins/chart_expressions/expression_tagcloud/common/index.ts index d8989abcc3d6f..cc4c141a73722 100755 --- a/src/plugins/chart_expressions/expression_tagcloud/common/index.ts +++ b/src/plugins/chart_expressions/expression_tagcloud/common/index.ts @@ -6,4 +6,7 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; diff --git a/src/plugins/charts/common/index.ts b/src/plugins/charts/common/index.ts index 1a8b3eef93b92..ad3d2d11bbdfd 100644 --- a/src/plugins/charts/common/index.ts +++ b/src/plugins/charts/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + export const COLOR_MAPPING_SETTING = 'visualization:colorMapping'; export * from './palette'; export * from './constants'; diff --git a/src/plugins/charts/public/index.ts b/src/plugins/charts/public/index.ts index 0eec6f14eff64..6674b98fce910 100644 --- a/src/plugins/charts/public/index.ts +++ b/src/plugins/charts/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ChartsPlugin } from './plugin'; export const plugin = () => new ChartsPlugin(); diff --git a/src/plugins/data/common/index.ts b/src/plugins/data/common/index.ts index a36788f949390..44285a4824211 100644 --- a/src/plugins/data/common/index.ts +++ b/src/plugins/data/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109904 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './es_query'; export * from './index_patterns'; diff --git a/src/plugins/data/public/index.ts b/src/plugins/data/public/index.ts index f70733d1b3e8a..595a88b412e9f 100644 --- a/src/plugins/data/public/index.ts +++ b/src/plugins/data/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109904 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from '../../../core/public'; import { ConfigSchema } from '../config'; diff --git a/src/plugins/data/server/index.ts b/src/plugins/data/server/index.ts index 2e6f9492d7d48..158eafb27c898 100644 --- a/src/plugins/data/server/index.ts +++ b/src/plugins/data/server/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109904 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginConfigDescriptor, PluginInitializerContext } from '../../../core/server'; import { ConfigSchema, configSchema } from '../config'; import { DataServerPlugin, DataPluginSetup, DataPluginStart } from './plugin'; diff --git a/src/plugins/dev_tools/public/index.ts b/src/plugins/dev_tools/public/index.ts index 641567140bd18..2326106af3e03 100644 --- a/src/plugins/dev_tools/public/index.ts +++ b/src/plugins/dev_tools/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110892 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'kibana/public'; import { DevToolsPlugin } from './plugin'; diff --git a/src/plugins/embeddable/common/index.ts b/src/plugins/embeddable/common/index.ts index 8004b4c6c4141..b6a6fe101668e 100644 --- a/src/plugins/embeddable/common/index.ts +++ b/src/plugins/embeddable/common/index.ts @@ -6,5 +6,8 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109903 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; export * from './lib'; diff --git a/src/plugins/expression_error/common/index.ts b/src/plugins/expression_error/common/index.ts index d8989abcc3d6f..0aeda03f27869 100755 --- a/src/plugins/expression_error/common/index.ts +++ b/src/plugins/expression_error/common/index.ts @@ -6,4 +6,7 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; diff --git a/src/plugins/expression_error/public/index.ts b/src/plugins/expression_error/public/index.ts index 04c29a96b853a..be34980045395 100755 --- a/src/plugins/expression_error/public/index.ts +++ b/src/plugins/expression_error/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionErrorPlugin } from './plugin'; export type { ExpressionErrorPluginSetup, ExpressionErrorPluginStart } from './plugin'; diff --git a/src/plugins/expression_image/common/index.ts b/src/plugins/expression_image/common/index.ts index f251b9cf01cb3..e435dacb8f790 100755 --- a/src/plugins/expression_image/common/index.ts +++ b/src/plugins/expression_image/common/index.ts @@ -6,5 +6,8 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; diff --git a/src/plugins/expression_image/public/index.ts b/src/plugins/expression_image/public/index.ts index 522418640bd1f..661a12e7cf028 100755 --- a/src/plugins/expression_image/public/index.ts +++ b/src/plugins/expression_image/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionImagePlugin } from './plugin'; export type { ExpressionImagePluginSetup, ExpressionImagePluginStart } from './plugin'; diff --git a/src/plugins/expression_metric/common/index.ts b/src/plugins/expression_metric/common/index.ts index 1b7668c49def5..c91624829777a 100755 --- a/src/plugins/expression_metric/common/index.ts +++ b/src/plugins/expression_metric/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; export * from './expression_functions'; diff --git a/src/plugins/expression_metric/public/index.ts b/src/plugins/expression_metric/public/index.ts index cd3eacaba04ae..87499f279524d 100755 --- a/src/plugins/expression_metric/public/index.ts +++ b/src/plugins/expression_metric/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionMetricPlugin } from './plugin'; export type { ExpressionMetricPluginSetup, ExpressionMetricPluginStart } from './plugin'; diff --git a/src/plugins/expression_repeat_image/common/index.ts b/src/plugins/expression_repeat_image/common/index.ts index 1b7668c49def5..c91624829777a 100755 --- a/src/plugins/expression_repeat_image/common/index.ts +++ b/src/plugins/expression_repeat_image/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; export * from './expression_functions'; diff --git a/src/plugins/expression_repeat_image/public/index.ts b/src/plugins/expression_repeat_image/public/index.ts index 6e16775256454..21e8f449dcc70 100755 --- a/src/plugins/expression_repeat_image/public/index.ts +++ b/src/plugins/expression_repeat_image/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionRepeatImagePlugin } from './plugin'; export type { ExpressionRepeatImagePluginSetup, ExpressionRepeatImagePluginStart } from './plugin'; diff --git a/src/plugins/expression_reveal_image/common/index.ts b/src/plugins/expression_reveal_image/common/index.ts index 95503b36acdb6..ba848ed631cf5 100755 --- a/src/plugins/expression_reveal_image/common/index.ts +++ b/src/plugins/expression_reveal_image/common/index.ts @@ -6,5 +6,8 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './expression_functions'; diff --git a/src/plugins/expression_reveal_image/public/index.ts b/src/plugins/expression_reveal_image/public/index.ts index 00cb14e0fc064..66512a1126b06 100755 --- a/src/plugins/expression_reveal_image/public/index.ts +++ b/src/plugins/expression_reveal_image/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionRevealImagePlugin } from './plugin'; export type { ExpressionRevealImagePluginSetup, ExpressionRevealImagePluginStart } from './plugin'; diff --git a/src/plugins/expression_shape/common/index.ts b/src/plugins/expression_shape/common/index.ts index 94dba27576094..6019cda7a51bd 100755 --- a/src/plugins/expression_shape/common/index.ts +++ b/src/plugins/expression_shape/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; diff --git a/src/plugins/expression_shape/public/index.ts b/src/plugins/expression_shape/public/index.ts index 882d1ea699d1d..21276d3fb4df9 100755 --- a/src/plugins/expression_shape/public/index.ts +++ b/src/plugins/expression_shape/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { ExpressionShapePlugin } from './plugin'; export type { ExpressionShapePluginSetup, ExpressionShapePluginStart } from './plugin'; diff --git a/src/plugins/expressions/common/index.ts b/src/plugins/expressions/common/index.ts index afdea570f7aeb..cc5f2785a2b8e 100644 --- a/src/plugins/expressions/common/index.ts +++ b/src/plugins/expressions/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109902 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; export * from './ast'; export * from './fonts'; diff --git a/src/plugins/expressions/public/index.ts b/src/plugins/expressions/public/index.ts index 79319f1f6f4c6..02656943cac3e 100644 --- a/src/plugins/expressions/public/index.ts +++ b/src/plugins/expressions/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109902 +/* eslint-disable @kbn/eslint/no_export_all */ + import './index.scss'; import { PluginInitializerContext } from '../../../core/public'; diff --git a/src/plugins/expressions/server/index.ts b/src/plugins/expressions/server/index.ts index 641d51c63be30..c09a8bf0104af 100644 --- a/src/plugins/expressions/server/index.ts +++ b/src/plugins/expressions/server/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109902 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'src/core/server'; import { ExpressionsServerPlugin } from './plugin'; diff --git a/src/plugins/inspector/public/index.ts b/src/plugins/inspector/public/index.ts index e8d46f8017d7b..c611d13c06ca2 100644 --- a/src/plugins/inspector/public/index.ts +++ b/src/plugins/inspector/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109900 +/* eslint-disable @kbn/eslint/no_export_all */ + import './index.scss'; import { PluginInitializerContext } from '../../../core/public'; diff --git a/src/plugins/kibana_legacy/public/index.ts b/src/plugins/kibana_legacy/public/index.ts index ea5172f78a68f..fa04b192cd177 100644 --- a/src/plugins/kibana_legacy/public/index.ts +++ b/src/plugins/kibana_legacy/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'kibana/public'; import { KibanaLegacyPlugin } from './plugin'; diff --git a/src/plugins/kibana_react/common/index.ts b/src/plugins/kibana_react/common/index.ts index 14aacfdf1a040..eb8059df235da 100644 --- a/src/plugins/kibana_react/common/index.ts +++ b/src/plugins/kibana_react/common/index.ts @@ -6,4 +6,7 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109898 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './eui_styled_components'; diff --git a/src/plugins/kibana_react/public/index.ts b/src/plugins/kibana_react/public/index.ts index 48b96a0a6289a..6fccb804c357f 100644 --- a/src/plugins/kibana_react/public/index.ts +++ b/src/plugins/kibana_react/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109898 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './code_editor'; export * from './url_template_editor'; export * from './exit_full_screen_button'; diff --git a/src/plugins/kibana_utils/common/index.ts b/src/plugins/kibana_utils/common/index.ts index 773c0b96d6413..be00a13715fc7 100644 --- a/src/plugins/kibana_utils/common/index.ts +++ b/src/plugins/kibana_utils/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109893 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './defer'; export * from './field_wildcard'; export * from './of'; diff --git a/src/plugins/kibana_utils/public/index.ts b/src/plugins/kibana_utils/public/index.ts index 3d9b5db062955..b0e0b8b2298ab 100644 --- a/src/plugins/kibana_utils/public/index.ts +++ b/src/plugins/kibana_utils/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109893 +/* eslint-disable @kbn/eslint/no_export_all */ + export { AbortError, abortSignalToPromise, diff --git a/src/plugins/maps_ems/common/index.ts b/src/plugins/maps_ems/common/index.ts index 20be740ccab3f..d83a3319d3d15 100644 --- a/src/plugins/maps_ems/common/index.ts +++ b/src/plugins/maps_ems/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109853 +/* eslint-disable @kbn/eslint/no_export_all */ + export const TMS_IN_YML_ID = 'TMS in config/kibana.yml'; export * from './ems_defaults'; diff --git a/src/plugins/maps_ems/public/index.ts b/src/plugins/maps_ems/public/index.ts index 0dfe808ca6f62..95eadb1e67186 100644 --- a/src/plugins/maps_ems/public/index.ts +++ b/src/plugins/maps_ems/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/109853 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'kibana/public'; import { MapsEmsPlugin } from './plugin'; import { IServiceSettings } from './service_settings'; diff --git a/src/plugins/presentation_util/common/index.ts b/src/plugins/presentation_util/common/index.ts index bf8819b13a92d..4510a0aac5a0b 100644 --- a/src/plugins/presentation_util/common/index.ts +++ b/src/plugins/presentation_util/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + export const PLUGIN_ID = 'presentationUtil'; export const PLUGIN_NAME = 'presentationUtil'; diff --git a/src/plugins/presentation_util/public/index.ts b/src/plugins/presentation_util/public/index.ts index f771a73c1df2b..6628124717a1c 100644 --- a/src/plugins/presentation_util/public/index.ts +++ b/src/plugins/presentation_util/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110893 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PresentationUtilPlugin } from './plugin'; export { diff --git a/src/plugins/url_forwarding/public/index.ts b/src/plugins/url_forwarding/public/index.ts index e1c0d1b84ff3b..4973a992e4559 100644 --- a/src/plugins/url_forwarding/public/index.ts +++ b/src/plugins/url_forwarding/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { UrlForwardingPlugin } from './plugin'; export const plugin = () => new UrlForwardingPlugin(); diff --git a/src/plugins/vis_default_editor/public/index.ts b/src/plugins/vis_default_editor/public/index.ts index eb8b7a1ff8c1c..ec1f514b9f2ff 100644 --- a/src/plugins/vis_default_editor/public/index.ts +++ b/src/plugins/vis_default_editor/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'kibana/public'; import { DefaultEditorController } from './default_editor_controller'; import { VisDefaultEditorPlugin } from './plugin'; diff --git a/src/plugins/vis_type_table/common/index.ts b/src/plugins/vis_type_table/common/index.ts index 12594660136d8..59cfa7e715f3b 100644 --- a/src/plugins/vis_type_table/common/index.ts +++ b/src/plugins/vis_type_table/common/index.ts @@ -6,4 +6,7 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; diff --git a/src/plugins/vis_types/vislib/public/index.ts b/src/plugins/vis_types/vislib/public/index.ts index 232e0494a9ebf..bd6cf6d9c892d 100644 --- a/src/plugins/vis_types/vislib/public/index.ts +++ b/src/plugins/vis_types/vislib/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from '../../../../core/public'; import { VisTypeVislibPlugin as Plugin } from './plugin'; diff --git a/src/plugins/vis_types/xy/public/index.ts b/src/plugins/vis_types/xy/public/index.ts index 55fa84c72603e..0953183fa1093 100644 --- a/src/plugins/vis_types/xy/public/index.ts +++ b/src/plugins/vis_types/xy/public/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { VisTypeXyPlugin as Plugin } from './plugin'; export { VisTypeXyPluginSetup } from './plugin'; diff --git a/src/plugins/visualizations/common/index.ts b/src/plugins/visualizations/common/index.ts index bde292cb69697..2733551a8aa30 100644 --- a/src/plugins/visualizations/common/index.ts +++ b/src/plugins/visualizations/common/index.ts @@ -6,6 +6,9 @@ * Side Public License, v 1. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + /** @public types */ export * from './types'; export * from './prepare_log_table'; diff --git a/x-pack/plugins/actions/common/index.ts b/x-pack/plugins/actions/common/index.ts index 336aa2263af0c..7825cbfb45f37 100644 --- a/x-pack/plugins/actions/common/index.ts +++ b/x-pack/plugins/actions/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; export * from './alert_history_schema'; export * from './rewrite_request_case'; diff --git a/x-pack/plugins/alerting/common/index.ts b/x-pack/plugins/alerting/common/index.ts index 3530abb7384ea..61e38941d0233 100644 --- a/x-pack/plugins/alerting/common/index.ts +++ b/x-pack/plugins/alerting/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + import { AlertsHealth } from './alert'; export * from './alert'; diff --git a/x-pack/plugins/cases/common/index.ts b/x-pack/plugins/cases/common/index.ts index 89e69308d56e5..5305318cc9aa6 100644 --- a/x-pack/plugins/cases/common/index.ts +++ b/x-pack/plugins/cases/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110896 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './api'; export * from './ui/types'; diff --git a/x-pack/plugins/cases/server/common/index.ts b/x-pack/plugins/cases/server/common/index.ts index ae9af177c1bb4..7a1e905c79a98 100644 --- a/x-pack/plugins/cases/server/common/index.ts +++ b/x-pack/plugins/cases/server/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110896 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './models'; export * from './utils'; export * from './types'; diff --git a/x-pack/plugins/dashboard_enhanced/common/index.ts b/x-pack/plugins/dashboard_enhanced/common/index.ts index d715b3e6ba41c..0033253d720a7 100644 --- a/x-pack/plugins/dashboard_enhanced/common/index.ts +++ b/x-pack/plugins/dashboard_enhanced/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110897 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './drilldowns'; diff --git a/x-pack/plugins/data_visualizer/common/index.ts b/x-pack/plugins/data_visualizer/common/index.ts index f4d74984a7d78..58159dfc3d7ef 100644 --- a/x-pack/plugins/data_visualizer/common/index.ts +++ b/x-pack/plugins/data_visualizer/common/index.ts @@ -5,5 +5,8 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110898 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; diff --git a/x-pack/plugins/discover_enhanced/common/index.ts b/x-pack/plugins/discover_enhanced/common/index.ts index 27306f04cea20..4ac13918c7ed3 100644 --- a/x-pack/plugins/discover_enhanced/common/index.ts +++ b/x-pack/plugins/discover_enhanced/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110900 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './config'; diff --git a/x-pack/plugins/file_upload/common/index.ts b/x-pack/plugins/file_upload/common/index.ts index f4d74984a7d78..58159dfc3d7ef 100644 --- a/x-pack/plugins/file_upload/common/index.ts +++ b/x-pack/plugins/file_upload/common/index.ts @@ -5,5 +5,8 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110898 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; diff --git a/x-pack/plugins/file_upload/public/index.ts b/x-pack/plugins/file_upload/public/index.ts index 262e399242291..b9e289ef00eeb 100644 --- a/x-pack/plugins/file_upload/public/index.ts +++ b/x-pack/plugins/file_upload/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110898 +/* eslint-disable @kbn/eslint/no_export_all */ + import { FileUploadPlugin } from './plugin'; export function plugin() { diff --git a/x-pack/plugins/fleet/common/index.ts b/x-pack/plugins/fleet/common/index.ts index 7805fee2e780a..029460c1750c2 100644 --- a/x-pack/plugins/fleet/common/index.ts +++ b/x-pack/plugins/fleet/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110901 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './services'; export * from './types'; diff --git a/x-pack/plugins/fleet/public/index.ts b/x-pack/plugins/fleet/public/index.ts index 585dc70ce2c42..b54d00eafdaab 100644 --- a/x-pack/plugins/fleet/public/index.ts +++ b/x-pack/plugins/fleet/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110901 +/* eslint-disable @kbn/eslint/no_export_all */ + import type { PluginInitializerContext } from 'src/core/public'; import { FleetPlugin } from './plugin'; diff --git a/x-pack/plugins/index_management/common/index.ts b/x-pack/plugins/index_management/common/index.ts index 1b1a10156abfc..ed8fd87643946 100644 --- a/x-pack/plugins/index_management/common/index.ts +++ b/x-pack/plugins/index_management/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110892 +/* eslint-disable @kbn/eslint/no_export_all */ + export { API_BASE_PATH, BASE_PATH } from './constants'; export { getTemplateParameter } from './lib'; diff --git a/x-pack/plugins/lens/common/index.ts b/x-pack/plugins/lens/common/index.ts index 42e673058f1db..e0600bd18afc1 100644 --- a/x-pack/plugins/lens/common/index.ts +++ b/x-pack/plugins/lens/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './api'; export * from './constants'; export * from './types'; diff --git a/x-pack/plugins/lens/server/index.ts b/x-pack/plugins/lens/server/index.ts index f8a9b2452de41..08f1eb1562739 100644 --- a/x-pack/plugins/lens/server/index.ts +++ b/x-pack/plugins/lens/server/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext, PluginConfigDescriptor } from 'kibana/server'; import { LensServerPlugin } from './plugin'; diff --git a/x-pack/plugins/licensing/public/index.ts b/x-pack/plugins/licensing/public/index.ts index 2eef6e92c48ba..1b7ff40d0f14a 100644 --- a/x-pack/plugins/licensing/public/index.ts +++ b/x-pack/plugins/licensing/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110902 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'src/core/public'; import { LicensingPlugin } from './plugin'; diff --git a/x-pack/plugins/licensing/server/index.ts b/x-pack/plugins/licensing/server/index.ts index b591263b48675..64933d0820cf3 100644 --- a/x-pack/plugins/licensing/server/index.ts +++ b/x-pack/plugins/licensing/server/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110902 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'src/core/server'; import { LicensingPlugin } from './plugin'; diff --git a/x-pack/plugins/lists/public/index.ts b/x-pack/plugins/lists/public/index.ts index 0b67ab05f5bd4..977b7f462777e 100644 --- a/x-pack/plugins/lists/public/index.ts +++ b/x-pack/plugins/lists/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110903 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './shared_exports'; import type { PluginInitializerContext } from '../../../../src/core/public'; diff --git a/x-pack/plugins/maps/common/index.ts b/x-pack/plugins/maps/common/index.ts index f4d74984a7d78..7c551b3ed9eb4 100644 --- a/x-pack/plugins/maps/common/index.ts +++ b/x-pack/plugins/maps/common/index.ts @@ -5,5 +5,8 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/109853 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export * from './types'; diff --git a/x-pack/plugins/metrics_entities/common/index.ts b/x-pack/plugins/metrics_entities/common/index.ts index a532dc151bf46..a6630f3ff67b0 100644 --- a/x-pack/plugins/metrics_entities/common/index.ts +++ b/x-pack/plugins/metrics_entities/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110904 +/* eslint-disable @kbn/eslint/no_export_all */ + export const PLUGIN_ID = 'metricsEntities'; export const PLUGIN_NAME = 'metrics_entities'; diff --git a/x-pack/plugins/ml/server/index.ts b/x-pack/plugins/ml/server/index.ts index fd3744ec734ce..a0c062747bcde 100644 --- a/x-pack/plugins/ml/server/index.ts +++ b/x-pack/plugins/ml/server/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110898 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'kibana/server'; import { MlServerPlugin } from './plugin'; export type { MlPluginSetup, MlPluginStart } from './plugin'; diff --git a/x-pack/plugins/observability/public/index.ts b/x-pack/plugins/observability/public/index.ts index cb390be635e10..380190aa7f223 100644 --- a/x-pack/plugins/observability/public/index.ts +++ b/x-pack/plugins/observability/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110905 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext, PluginInitializer } from 'kibana/public'; import { lazy } from 'react'; import { diff --git a/x-pack/plugins/observability/server/index.ts b/x-pack/plugins/observability/server/index.ts index e05bf9f311602..eb08e9f3c258d 100644 --- a/x-pack/plugins/observability/server/index.ts +++ b/x-pack/plugins/observability/server/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110905 +/* eslint-disable @kbn/eslint/no_export_all */ + import { schema, TypeOf } from '@kbn/config-schema'; import { PluginInitializerContext } from 'src/core/server'; import { ObservabilityPlugin, ObservabilityPluginSetup } from './plugin'; diff --git a/x-pack/plugins/osquery/common/index.ts b/x-pack/plugins/osquery/common/index.ts index fd2c71e290e46..6f1a8c55ad191 100644 --- a/x-pack/plugins/osquery/common/index.ts +++ b/x-pack/plugins/osquery/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110906 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; export const PLUGIN_ID = 'osquery'; diff --git a/x-pack/plugins/osquery/public/common/index.ts b/x-pack/plugins/osquery/public/common/index.ts index 6c315f929b9bb..520c2d2da6d39 100644 --- a/x-pack/plugins/osquery/public/common/index.ts +++ b/x-pack/plugins/osquery/public/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110906 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './helpers'; diff --git a/x-pack/plugins/reporting/common/index.ts b/x-pack/plugins/reporting/common/index.ts index a45ef4cf2919d..4bef94999f9d9 100644 --- a/x-pack/plugins/reporting/common/index.ts +++ b/x-pack/plugins/reporting/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/109897 +/* eslint-disable @kbn/eslint/no_export_all */ + export * as constants from './constants'; export { CancellationToken } from './cancellation_token'; export { Poller } from './poller'; diff --git a/x-pack/plugins/rule_registry/server/index.ts b/x-pack/plugins/rule_registry/server/index.ts index e49b2a4d5abed..33822da746cd2 100644 --- a/x-pack/plugins/rule_registry/server/index.ts +++ b/x-pack/plugins/rule_registry/server/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110907 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from 'src/core/server'; import { RuleRegistryPlugin } from './plugin'; diff --git a/x-pack/plugins/security_solution/common/index.ts b/x-pack/plugins/security_solution/common/index.ts index e6d7bcc9bd506..19ce0d45e2485 100644 --- a/x-pack/plugins/security_solution/common/index.ts +++ b/x-pack/plugins/security_solution/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110904 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; export * from './search_strategy'; export * from './utility_types'; diff --git a/x-pack/plugins/snapshot_restore/common/index.ts b/x-pack/plugins/snapshot_restore/common/index.ts index 63661f0d5a996..f8a44c695c520 100644 --- a/x-pack/plugins/snapshot_restore/common/index.ts +++ b/x-pack/plugins/snapshot_restore/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110892 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './constants'; diff --git a/x-pack/plugins/stack_alerts/common/index.ts b/x-pack/plugins/stack_alerts/common/index.ts index 898c080185ee6..65d05a298224d 100644 --- a/x-pack/plugins/stack_alerts/common/index.ts +++ b/x-pack/plugins/stack_alerts/common/index.ts @@ -5,5 +5,8 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './config'; export const STACK_ALERTS_FEATURE_ID = 'stackAlerts'; diff --git a/x-pack/plugins/timelines/common/index.ts b/x-pack/plugins/timelines/common/index.ts index 05174235c20db..2242a6951c750 100644 --- a/x-pack/plugins/timelines/common/index.ts +++ b/x-pack/plugins/timelines/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110904 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; export * from './search_strategy'; export * from './utils/accessibility'; diff --git a/x-pack/plugins/timelines/public/index.ts b/x-pack/plugins/timelines/public/index.ts index 3a609155ad892..2096415867682 100644 --- a/x-pack/plugins/timelines/public/index.ts +++ b/x-pack/plugins/timelines/public/index.ts @@ -4,6 +4,10 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ + +// TODO: https://github.com/elastic/kibana/issues/110904 +/* eslint-disable @kbn/eslint/no_export_all */ + import { createContext } from 'react'; import { PluginInitializerContext } from '../../../../src/core/public'; diff --git a/x-pack/plugins/triggers_actions_ui/common/index.ts b/x-pack/plugins/triggers_actions_ui/common/index.ts index 04e073d0a5df8..4989b98e5a555 100644 --- a/x-pack/plugins/triggers_actions_ui/common/index.ts +++ b/x-pack/plugins/triggers_actions_ui/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './data'; diff --git a/x-pack/plugins/triggers_actions_ui/public/common/index.ts b/x-pack/plugins/triggers_actions_ui/public/common/index.ts index 67f4cc603ad92..78241e5770eeb 100644 --- a/x-pack/plugins/triggers_actions_ui/public/common/index.ts +++ b/x-pack/plugins/triggers_actions_ui/public/common/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './expression_items'; export * from './constants'; export * from './index_controls'; diff --git a/x-pack/plugins/triggers_actions_ui/public/index.ts b/x-pack/plugins/triggers_actions_ui/public/index.ts index b50a7efc9d907..4c4a424b51eea 100644 --- a/x-pack/plugins/triggers_actions_ui/public/index.ts +++ b/x-pack/plugins/triggers_actions_ui/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/110895 +/* eslint-disable @kbn/eslint/no_export_all */ + import { Plugin } from './plugin'; export type { diff --git a/x-pack/plugins/ui_actions_enhanced/common/index.ts b/x-pack/plugins/ui_actions_enhanced/common/index.ts index 6cc0ccaa93a6d..7b5bd71c9e8be 100644 --- a/x-pack/plugins/ui_actions_enhanced/common/index.ts +++ b/x-pack/plugins/ui_actions_enhanced/common/index.ts @@ -5,4 +5,7 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/109891 +/* eslint-disable @kbn/eslint/no_export_all */ + export * from './types'; diff --git a/x-pack/plugins/ui_actions_enhanced/public/index.ts b/x-pack/plugins/ui_actions_enhanced/public/index.ts index b8e4fcbd916e6..8b4b43d54db89 100644 --- a/x-pack/plugins/ui_actions_enhanced/public/index.ts +++ b/x-pack/plugins/ui_actions_enhanced/public/index.ts @@ -5,6 +5,9 @@ * 2.0. */ +// TODO: https://github.com/elastic/kibana/issues/109891 +/* eslint-disable @kbn/eslint/no_export_all */ + import { PluginInitializerContext } from '../../../../src/core/public'; import { AdvancedUiActionsPublicPlugin } from './plugin'; diff --git a/x-pack/yarn.lock b/x-pack/yarn.lock deleted file mode 100644 index fb57ccd13afbd..0000000000000 --- a/x-pack/yarn.lock +++ /dev/null @@ -1,4 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - -