mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Bump eslint@7 (#94347)
This commit is contained in:
parent
634fb36c02
commit
4b89e14884
129 changed files with 841 additions and 1030 deletions
|
@ -492,6 +492,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'**/*.stories.tsx',
|
'**/*.stories.tsx',
|
||||||
|
'**/*.test.js',
|
||||||
'x-pack/test/apm_api_integration/**/*.ts',
|
'x-pack/test/apm_api_integration/**/*.ts',
|
||||||
'x-pack/test/functional/apps/**/*.js',
|
'x-pack/test/functional/apps/**/*.js',
|
||||||
'x-pack/plugins/apm/**/*.js',
|
'x-pack/plugins/apm/**/*.js',
|
||||||
|
@ -506,6 +507,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'import/no-default-export': 'off',
|
'import/no-default-export': 'off',
|
||||||
|
'import/no-named-as-default-member': 'off',
|
||||||
'import/no-named-as-default': 'off',
|
'import/no-named-as-default': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1547,8 +1549,8 @@ module.exports = {
|
||||||
plugins: ['react', '@typescript-eslint'],
|
plugins: ['react', '@typescript-eslint'],
|
||||||
files: ['x-pack/plugins/osquery/**/*.{js,mjs,ts,tsx}'],
|
files: ['x-pack/plugins/osquery/**/*.{js,mjs,ts,tsx}'],
|
||||||
rules: {
|
rules: {
|
||||||
'arrow-body-style': ['error', 'as-needed'],
|
// 'arrow-body-style': ['error', 'as-needed'],
|
||||||
'prefer-arrow-callback': 'error',
|
// 'prefer-arrow-callback': 'error',
|
||||||
'no-unused-vars': 'off',
|
'no-unused-vars': 'off',
|
||||||
'react/prop-types': 'off',
|
'react/prop-types': 'off',
|
||||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||||
|
|
44
package.json
44
package.json
|
@ -417,6 +417,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.15.7",
|
"@babel/cli": "^7.15.7",
|
||||||
"@babel/core": "^7.15.5",
|
"@babel/core": "^7.15.5",
|
||||||
|
"@babel/eslint-parser": "^7.15.7",
|
||||||
|
"@babel/eslint-plugin": "^7.14.5",
|
||||||
"@babel/generator": "^7.15.4",
|
"@babel/generator": "^7.15.4",
|
||||||
"@babel/parser": "^7.15.7",
|
"@babel/parser": "^7.15.7",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
||||||
|
@ -518,7 +520,7 @@
|
||||||
"@types/ejs": "^3.0.6",
|
"@types/ejs": "^3.0.6",
|
||||||
"@types/elasticsearch": "^5.0.33",
|
"@types/elasticsearch": "^5.0.33",
|
||||||
"@types/enzyme": "^3.10.8",
|
"@types/enzyme": "^3.10.8",
|
||||||
"@types/eslint": "^6.1.3",
|
"@types/eslint": "^7.28.0",
|
||||||
"@types/extract-zip": "^1.6.2",
|
"@types/extract-zip": "^1.6.2",
|
||||||
"@types/faker": "^5.1.5",
|
"@types/faker": "^5.1.5",
|
||||||
"@types/fancy-log": "^1.3.1",
|
"@types/fancy-log": "^1.3.1",
|
||||||
|
@ -640,9 +642,9 @@
|
||||||
"@types/xml2js": "^0.4.5",
|
"@types/xml2js": "^0.4.5",
|
||||||
"@types/yauzl": "^2.9.1",
|
"@types/yauzl": "^2.9.1",
|
||||||
"@types/zen-observable": "^0.8.0",
|
"@types/zen-observable": "^0.8.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.14.1",
|
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
||||||
"@typescript-eslint/parser": "^4.14.1",
|
"@typescript-eslint/parser": "^4.31.2",
|
||||||
"@typescript-eslint/typescript-estree": "^4.14.1",
|
"@typescript-eslint/typescript-estree": "^4.31.2",
|
||||||
"@yarnpkg/lockfile": "^1.1.0",
|
"@yarnpkg/lockfile": "^1.1.0",
|
||||||
"abab": "^2.0.4",
|
"abab": "^2.0.4",
|
||||||
"aggregate-error": "^3.1.0",
|
"aggregate-error": "^3.1.0",
|
||||||
|
@ -653,7 +655,6 @@
|
||||||
"argsplit": "^1.0.5",
|
"argsplit": "^1.0.5",
|
||||||
"autoprefixer": "^9.7.4",
|
"autoprefixer": "^9.7.4",
|
||||||
"axe-core": "^4.0.2",
|
"axe-core": "^4.0.2",
|
||||||
"babel-eslint": "^10.1.0",
|
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^26.6.3",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"babel-plugin-add-module-exports": "^1.0.4",
|
"babel-plugin-add-module-exports": "^1.0.4",
|
||||||
|
@ -690,26 +691,25 @@
|
||||||
"enzyme-adapter-react-16": "^1.15.6",
|
"enzyme-adapter-react-16": "^1.15.6",
|
||||||
"enzyme-adapter-utils": "^1.14.0",
|
"enzyme-adapter-utils": "^1.14.0",
|
||||||
"enzyme-to-json": "^3.6.1",
|
"enzyme-to-json": "^3.6.1",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^6.15.0",
|
"eslint-config-prettier": "^7.2.0",
|
||||||
"eslint-import-resolver-node": "0.3.2",
|
"eslint-import-resolver-node": "^0.3.6",
|
||||||
"eslint-import-resolver-webpack": "0.11.1",
|
"eslint-import-resolver-webpack": "^0.13.1",
|
||||||
"eslint-module-utils": "2.5.0",
|
"eslint-module-utils": "^2.6.2",
|
||||||
"eslint-plugin-babel": "^5.3.1",
|
"eslint-plugin-ban": "^1.5.2",
|
||||||
"eslint-plugin-ban": "^1.4.0",
|
"eslint-plugin-cypress": "^2.12.1",
|
||||||
"eslint-plugin-cypress": "^2.11.3",
|
|
||||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.24.2",
|
||||||
"eslint-plugin-jest": "^24.3.4",
|
"eslint-plugin-jest": "^24.5.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.2.3",
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||||
"eslint-plugin-mocha": "^6.2.2",
|
"eslint-plugin-mocha": "^9.0.0",
|
||||||
"eslint-plugin-no-unsanitized": "^3.0.2",
|
"eslint-plugin-no-unsanitized": "^3.1.5",
|
||||||
"eslint-plugin-node": "^11.0.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
||||||
"eslint-plugin-prettier": "^3.4.1",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"eslint-plugin-react": "^7.20.3",
|
"eslint-plugin-react": "^7.26.1",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"eslint-plugin-react-perf": "^3.2.3",
|
"eslint-plugin-react-perf": "^3.3.0",
|
||||||
"eslint-traverse": "^1.0.0",
|
"eslint-traverse": "^1.0.0",
|
||||||
"expose-loader": "^0.7.5",
|
"expose-loader": "^0.7.5",
|
||||||
"faker": "^5.1.0",
|
"faker": "^5.1.0",
|
||||||
|
|
|
@ -8,11 +8,11 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
files: ['**/*.js'],
|
files: ['**/*.js'],
|
||||||
parser: require.resolve('babel-eslint'),
|
parser: require.resolve('@babel/eslint-parser'),
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
'mocha',
|
'mocha',
|
||||||
'babel',
|
'@babel',
|
||||||
'import',
|
'import',
|
||||||
'no-unsanitized',
|
'no-unsanitized',
|
||||||
'prefer-object-spread',
|
'prefer-object-spread',
|
||||||
|
@ -36,6 +36,10 @@ module.exports = {
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
requireConfigFile: false,
|
||||||
|
babelOptions: {
|
||||||
|
presets: ['@kbn/babel-preset/node_preset']
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
|
|
|
@ -34,7 +34,7 @@ export class ByteSizeValue {
|
||||||
return new ByteSizeValue(number);
|
return new ByteSizeValue(number);
|
||||||
}
|
}
|
||||||
|
|
||||||
const value = parseInt(match[1], 0);
|
const value = parseInt(match[1], 10);
|
||||||
const unit = match[2];
|
const unit = match[2];
|
||||||
|
|
||||||
return new ByteSizeValue(value * unitMultiplier[unit]);
|
return new ByteSizeValue(value * unitMultiplier[unit]);
|
||||||
|
|
|
@ -24,7 +24,7 @@ function stringToDuration(text: string) {
|
||||||
return numberToDuration(number);
|
return numberToDuration(number);
|
||||||
}
|
}
|
||||||
|
|
||||||
const count = parseInt(result[1], 0);
|
const count = parseInt(result[1], 10);
|
||||||
const unit = result[2] as DurationInputArg2;
|
const unit = result[2] as DurationInputArg2;
|
||||||
|
|
||||||
return momentDuration(count, unit);
|
return momentDuration(count, unit);
|
||||||
|
|
|
@ -29,7 +29,7 @@ NPM_MODULE_EXTRA_FILES = [
|
||||||
]
|
]
|
||||||
|
|
||||||
DEPS = [
|
DEPS = [
|
||||||
"@npm//babel-eslint",
|
"@npm//@babel/eslint-parser",
|
||||||
"@npm//dedent",
|
"@npm//dedent",
|
||||||
"@npm//eslint",
|
"@npm//eslint",
|
||||||
"@npm//eslint-module-utils",
|
"@npm//eslint-module-utils",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const babelEslint = require('babel-eslint');
|
const babelEslint = require('@babel/eslint-parser');
|
||||||
|
|
||||||
const { assert, normalizeWhitespace, init } = require('../lib');
|
const { assert, normalizeWhitespace, init } = require('../lib');
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
assert(!!licenses, '"licenses" option is required');
|
assert(!!licenses, '"licenses" option is required');
|
||||||
|
|
||||||
return licenses.map((license, i) => {
|
return licenses.map((license, i) => {
|
||||||
const parsed = babelEslint.parse(license);
|
const parsed = babelEslint.parse(license, { requireConfigFile: false });
|
||||||
|
|
||||||
assert(
|
assert(
|
||||||
!parsed.body.length,
|
!parsed.body.length,
|
||||||
|
|
|
@ -11,9 +11,10 @@ const rule = require('./disallow_license_headers');
|
||||||
const dedent = require('dedent');
|
const dedent = require('dedent');
|
||||||
|
|
||||||
const ruleTester = new RuleTester({
|
const ruleTester = new RuleTester({
|
||||||
parser: require.resolve('babel-eslint'),
|
parser: require.resolve('@babel/eslint-parser'),
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
requireConfigFile: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,10 @@ const rule = require('./module_migration');
|
||||||
const dedent = require('dedent');
|
const dedent = require('dedent');
|
||||||
|
|
||||||
const ruleTester = new RuleTester({
|
const ruleTester = new RuleTester({
|
||||||
parser: require.resolve('babel-eslint'),
|
parser: require.resolve('@babel/eslint-parser'),
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
requireConfigFile: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -69,6 +70,12 @@ ruleTester.run('@kbn/eslint/module-migration', rule, {
|
||||||
message: 'Re-exported module "foo" should be "bar"',
|
message: 'Re-exported module "foo" should be "bar"',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
output: dedent`
|
||||||
|
import 'bar'
|
||||||
|
require('bar/foo2')
|
||||||
|
export { foo } from 'bar'
|
||||||
|
export const foo2 = 'bar'
|
||||||
|
`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -32,10 +32,11 @@ const { RuleTester } = require('eslint');
|
||||||
const rule = require('./no_restricted_paths');
|
const rule = require('./no_restricted_paths');
|
||||||
|
|
||||||
const ruleTester = new RuleTester({
|
const ruleTester = new RuleTester({
|
||||||
parser: require.resolve('babel-eslint'),
|
parser: require.resolve('@babel/eslint-parser'),
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
requireConfigFile: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const babelEslint = require('babel-eslint');
|
const babelEslint = require('@babel/eslint-parser');
|
||||||
|
|
||||||
const { assert, normalizeWhitespace, init } = require('../lib');
|
const { assert, normalizeWhitespace, init } = require('../lib');
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ module.exports = {
|
||||||
|
|
||||||
assert(!!license, '"license" option is required');
|
assert(!!license, '"license" option is required');
|
||||||
|
|
||||||
const parsed = babelEslint.parse(license);
|
const parsed = babelEslint.parse(license, { requireConfigFile: false });
|
||||||
assert(!parsed.body.length, '"license" option must only include a single comment');
|
assert(!parsed.body.length, '"license" option must only include a single comment');
|
||||||
assert(
|
assert(
|
||||||
parsed.comments.length === 1,
|
parsed.comments.length === 1,
|
||||||
|
|
|
@ -11,9 +11,10 @@ const rule = require('./require_license_header');
|
||||||
const dedent = require('dedent');
|
const dedent = require('dedent');
|
||||||
|
|
||||||
const ruleTester = new RuleTester({
|
const ruleTester = new RuleTester({
|
||||||
parser: require.resolve('babel-eslint'),
|
parser: require.resolve('@babel/eslint-parser'),
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
requireConfigFile: false,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
351
packages/kbn-pm/dist/index.js
vendored
351
packages/kbn-pm/dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -161,7 +161,6 @@ function getSnapshotState(file: string, updateSnapshot: SnapshotUpdateState) {
|
||||||
path.join(dirname + `/__snapshots__/` + filename.replace(path.extname(filename), '.snap')),
|
path.join(dirname + `/__snapshots__/` + filename.replace(path.extname(filename), '.snap')),
|
||||||
{
|
{
|
||||||
updateSnapshot,
|
updateSnapshot,
|
||||||
// @ts-expect-error
|
|
||||||
getPrettier: () => prettier,
|
getPrettier: () => prettier,
|
||||||
getBabelTraverse: () => babelTraverse,
|
getBabelTraverse: () => babelTraverse,
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,18 +20,13 @@ function lintFilesOnFS(cli: CLIEngine, files: File[]) {
|
||||||
|
|
||||||
// For files living somewhere else (ie. git object)
|
// For files living somewhere else (ie. git object)
|
||||||
async function lintFilesOnContent(cli: CLIEngine, files: File[]) {
|
async function lintFilesOnContent(cli: CLIEngine, files: File[]) {
|
||||||
const report: {
|
const report: CLIEngine.LintReport = {
|
||||||
results: any[];
|
|
||||||
errorCount: number;
|
|
||||||
warningCount: number;
|
|
||||||
fixableErrorCount: number;
|
|
||||||
fixableWarningCount: number;
|
|
||||||
} = {
|
|
||||||
results: [],
|
results: [],
|
||||||
errorCount: 0,
|
errorCount: 0,
|
||||||
warningCount: 0,
|
warningCount: 0,
|
||||||
fixableErrorCount: 0,
|
fixableErrorCount: 0,
|
||||||
fixableWarningCount: 0,
|
fixableWarningCount: 0,
|
||||||
|
usedDeprecatedRules: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
@ -46,6 +41,7 @@ async function lintFilesOnContent(cli: CLIEngine, files: File[]) {
|
||||||
report.warningCount += r.warningCount;
|
report.warningCount += r.warningCount;
|
||||||
report.fixableErrorCount += r.fixableErrorCount;
|
report.fixableErrorCount += r.fixableErrorCount;
|
||||||
report.fixableWarningCount += r.fixableWarningCount;
|
report.fixableWarningCount += r.fixableWarningCount;
|
||||||
|
report.usedDeprecatedRules.push(...r.usedDeprecatedRules);
|
||||||
}
|
}
|
||||||
|
|
||||||
return report;
|
return report;
|
||||||
|
|
|
@ -76,10 +76,5 @@ export const LICENSE_OVERRIDES = {
|
||||||
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
|
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
|
||||||
'@elastic/ems-client@7.15.0': ['Elastic License 2.0'],
|
'@elastic/ems-client@7.15.0': ['Elastic License 2.0'],
|
||||||
'@elastic/eui@38.0.1': ['SSPL-1.0 OR Elastic License 2.0'],
|
'@elastic/eui@38.0.1': ['SSPL-1.0 OR Elastic License 2.0'],
|
||||||
|
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODC‑By license https://github.com/mattcg/language-subtag-registry
|
||||||
// TODO can be removed if the https://github.com/jindw/xmldom/issues/239 is released
|
|
||||||
'xmldom@0.1.27': ['MIT'],
|
|
||||||
|
|
||||||
// TODO can be removed once we upgrade the use of walk dependency past or equal to v2.3.14
|
|
||||||
'walk@2.3.9': ['MIT'],
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -78,7 +78,7 @@ export async function getTotalCount(
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
countTotal:
|
countTotal:
|
||||||
Object.keys(aggs).reduce((total: number, key: string) => parseInt(aggs[key], 0) + total, 0) +
|
Object.keys(aggs).reduce((total: number, key: string) => parseInt(aggs[key], 10) + total, 0) +
|
||||||
(preconfiguredActions?.length ?? 0),
|
(preconfiguredActions?.length ?? 0),
|
||||||
countByType,
|
countByType,
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ export function parseDuration(duration: string): number {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDurationNumberInItsUnit(duration: string): number {
|
export function getDurationNumberInItsUnit(duration: string): number {
|
||||||
return parseInt(duration.replace(/[^0-9.]/g, ''), 0);
|
return parseInt(duration.replace(/[^0-9.]/g, ''), 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDurationUnitValue(duration: string): string {
|
export function getDurationUnitValue(duration: string): string {
|
||||||
|
|
|
@ -259,7 +259,7 @@ export async function getTotalCountAggregations(
|
||||||
|
|
||||||
const totalAlertsCount = Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
const totalAlertsCount = Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
||||||
(total: number, key: string) =>
|
(total: number, key: string) =>
|
||||||
parseInt(aggregations.byAlertTypeId.value.types[key], 0) + total,
|
parseInt(aggregations.byAlertTypeId.value.types[key], 10) + total,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ export async function getTotalCountInUse(esClient: ElasticsearchClient, kibanaIn
|
||||||
return {
|
return {
|
||||||
countTotal: Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
countTotal: Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
||||||
(total: number, key: string) =>
|
(total: number, key: string) =>
|
||||||
parseInt(aggregations.byAlertTypeId.value.types[key], 0) + total,
|
parseInt(aggregations.byAlertTypeId.value.types[key], 10) + total,
|
||||||
0
|
0
|
||||||
),
|
),
|
||||||
countByType: Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
countByType: Object.keys(aggregations.byAlertTypeId.value.types).reduce(
|
||||||
|
|
|
@ -72,7 +72,6 @@ export function PageLoadDistChart({
|
||||||
onPercentileChange(minX, maxX);
|
onPercentileChange(minX, maxX);
|
||||||
};
|
};
|
||||||
|
|
||||||
// eslint-disable-next-line react/function-component-definition
|
|
||||||
const headerFormatter: TooltipValueFormatter = (tooltip: TooltipValue) => {
|
const headerFormatter: TooltipValueFormatter = (tooltip: TooltipValue) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import { TransactionDetailLink } from '../../../shared/Links/apm/transaction_det
|
||||||
import { IWaterfall } from './waterfall_container/Waterfall/waterfall_helpers/waterfall_helpers';
|
import { IWaterfall } from './waterfall_container/Waterfall/waterfall_helpers/waterfall_helpers';
|
||||||
import { Environment } from '../../../../../common/environment_rt';
|
import { Environment } from '../../../../../common/environment_rt';
|
||||||
|
|
||||||
export const MaybeViewTraceLink = ({
|
export function MaybeViewTraceLink({
|
||||||
transaction,
|
transaction,
|
||||||
waterfall,
|
waterfall,
|
||||||
environment,
|
environment,
|
||||||
|
@ -23,7 +23,7 @@ export const MaybeViewTraceLink = ({
|
||||||
transaction: ITransaction;
|
transaction: ITransaction;
|
||||||
waterfall: IWaterfall;
|
waterfall: IWaterfall;
|
||||||
environment: Environment;
|
environment: Environment;
|
||||||
}) => {
|
}) {
|
||||||
const {
|
const {
|
||||||
urlParams: { latencyAggregationType },
|
urlParams: { latencyAggregationType },
|
||||||
} = useUrlParams();
|
} = useUrlParams();
|
||||||
|
@ -102,4 +102,4 @@ export const MaybeViewTraceLink = ({
|
||||||
</EuiFlexItem>
|
</EuiFlexItem>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
|
@ -580,15 +580,6 @@ export const applyLocalTransforms = (shapes, transformIntents) => {
|
||||||
return shapes.map(shapeApplyLocalTransforms(transformIntents));
|
return shapes.map(shapeApplyLocalTransforms(transformIntents));
|
||||||
};
|
};
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
const getUpstreamTransforms = (shapes, shape) =>
|
|
||||||
shape.parent
|
|
||||||
? getUpstreamTransforms(
|
|
||||||
shapes,
|
|
||||||
shapes.find((s) => s.id === shape.parent)
|
|
||||||
).concat([shape.localTransformMatrix])
|
|
||||||
: [shape.localTransformMatrix];
|
|
||||||
|
|
||||||
const getUpstreams = (shapes, shape) =>
|
const getUpstreams = (shapes, shape) =>
|
||||||
shape.parent
|
shape.parent
|
||||||
? getUpstreams(
|
? getUpstreams(
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import sinon from 'sinon';
|
import { fakeServer } from 'sinon';
|
||||||
|
|
||||||
// Register helpers to mock HTTP Requests
|
// Register helpers to mock HTTP Requests
|
||||||
const registerHttpRequestMockHelpers = (server) => {
|
const registerHttpRequestMockHelpers = (server) => {
|
||||||
|
@ -124,7 +124,7 @@ const registerHttpRequestMockHelpers = (server) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const init = () => {
|
export const init = () => {
|
||||||
const server = sinon.fakeServer.create();
|
const server = fakeServer.create();
|
||||||
server.respondImmediately = true;
|
server.respondImmediately = true;
|
||||||
|
|
||||||
// We make requests to APIs which don't impact the UX, e.g. UI metric telemetry,
|
// We make requests to APIs which don't impact the UX, e.g. UI metric telemetry,
|
||||||
|
|
|
@ -50,6 +50,7 @@ function ListItem({
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
||||||
<li
|
<li
|
||||||
className={classNames('gphGuidancePanel__item', {
|
className={classNames('gphGuidancePanel__item', {
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-shadow, react-perf/jsx-no-new-object-as-prop, react/jsx-no-bind, react/display-name, react-perf/jsx-no-new-function-as-prop, react-perf/jsx-no-new-array-as-prop */
|
/* eslint-disable @typescript-eslint/no-shadow, react-perf/jsx-no-new-object-as-prop, react/jsx-no-bind, react-perf/jsx-no-new-function-as-prop, react-perf/jsx-no-new-array-as-prop */
|
||||||
|
|
||||||
import { find } from 'lodash/fp';
|
import { find } from 'lodash/fp';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
|
|
@ -24,7 +24,6 @@ const columns = [
|
||||||
{
|
{
|
||||||
field: 'query',
|
field: 'query',
|
||||||
name: 'Query',
|
name: 'Query',
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (query: string) => (
|
render: (query: string) => (
|
||||||
<EuiCodeBlock language="sql" fontSize="s" paddingSize="s">
|
<EuiCodeBlock language="sql" fontSize="s" paddingSize="s">
|
||||||
{query}
|
{query}
|
||||||
|
|
|
@ -120,6 +120,7 @@ const ResultsTableComponent: React.FC<ResultsTableComponentProps> = ({
|
||||||
|
|
||||||
const renderCellValue: EuiDataGridProps['renderCellValue'] = useMemo(
|
const renderCellValue: EuiDataGridProps['renderCellValue'] = useMemo(
|
||||||
() =>
|
() =>
|
||||||
|
// eslint-disable-next-line react/display-name
|
||||||
({ rowIndex, columnId }) => {
|
({ rowIndex, columnId }) => {
|
||||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||||
const data = useContext(DataContext);
|
const data = useContext(DataContext);
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
import React, { lazy, Suspense } from 'react';
|
import React, { lazy, Suspense } from 'react';
|
||||||
|
|
||||||
// @ts-expect-error update types
|
// @ts-expect-error update types
|
||||||
|
// eslint-disable-next-line react/display-name
|
||||||
export const getLazyOsqueryAction = (services) => (props) => {
|
export const getLazyOsqueryAction = (services) => (props) => {
|
||||||
const OsqueryAction = lazy(() => import('./osquery_action'));
|
const OsqueryAction = lazy(() => import('./osquery_action'));
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,7 +23,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -95,10 +95,8 @@ type RenderFunctionProp = (
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
dataProvider: DataProvider;
|
dataProvider: DataProvider;
|
||||||
disabled?: boolean;
|
|
||||||
hideTopN?: boolean;
|
hideTopN?: boolean;
|
||||||
isDraggable?: boolean;
|
isDraggable?: boolean;
|
||||||
inline?: boolean;
|
|
||||||
render: RenderFunctionProp;
|
render: RenderFunctionProp;
|
||||||
timelineId?: string;
|
timelineId?: string;
|
||||||
truncate?: boolean;
|
truncate?: boolean;
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { EuiPanel, EuiText } from '@elastic/eui';
|
import { EuiPanel, EuiText } from '@elastic/eui';
|
||||||
import { get } from 'lodash';
|
import { get } from 'lodash';
|
||||||
import memoizeOne from 'memoize-one';
|
import memoizeOne from 'memoize-one';
|
||||||
|
|
|
@ -22,7 +22,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -121,7 +121,6 @@ interface Props {
|
||||||
end: string;
|
end: string;
|
||||||
filters: Filter[];
|
filters: Filter[];
|
||||||
headerFilterGroup?: React.ReactNode;
|
headerFilterGroup?: React.ReactNode;
|
||||||
height?: number;
|
|
||||||
id: TimelineId;
|
id: TimelineId;
|
||||||
indexNames: string[];
|
indexNames: string[];
|
||||||
indexPattern: IIndexPattern;
|
indexPattern: IIndexPattern;
|
||||||
|
|
|
@ -37,7 +37,6 @@ const EMPTY_CONTROL_COLUMNS: ControlColumnProps[] = [];
|
||||||
const leadingControlColumns: ControlColumnProps[] = [
|
const leadingControlColumns: ControlColumnProps[] = [
|
||||||
{
|
{
|
||||||
...defaultControlColumn,
|
...defaultControlColumn,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
headerCellRender: () => <>{i18n.ACTIONS}</>,
|
headerCellRender: () => <>{i18n.ACTIONS}</>,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { useCallback, memo } from 'react';
|
import React, { useCallback, memo } from 'react';
|
||||||
import { EuiToolTip, EuiLink, EuiMarkdownAstNodePosition } from '@elastic/eui';
|
import { EuiToolTip, EuiLink } from '@elastic/eui';
|
||||||
|
|
||||||
import { useTimelineClick } from '../../../../utils/timeline/use_timeline_click';
|
import { useTimelineClick } from '../../../../utils/timeline/use_timeline_click';
|
||||||
import { TimelineProps } from './types';
|
import { TimelineProps } from './types';
|
||||||
import * as i18n from './translations';
|
import * as i18n from './translations';
|
||||||
|
|
||||||
export const TimelineMarkDownRendererComponent: React.FC<
|
export const TimelineMarkDownRendererComponent: React.FC<TimelineProps> = ({
|
||||||
TimelineProps & {
|
id,
|
||||||
position: EuiMarkdownAstNodePosition;
|
title,
|
||||||
}
|
graphEventId,
|
||||||
> = ({ id, title, graphEventId }) => {
|
}) => {
|
||||||
const handleTimelineClick = useTimelineClick();
|
const handleTimelineClick = useTimelineClick();
|
||||||
const onClickTimeline = useCallback(
|
const onClickTimeline = useCallback(
|
||||||
() => handleTimelineClick(id ?? '', graphEventId),
|
() => handleTimelineClick(id ?? '', graphEventId),
|
||||||
|
|
|
@ -19,6 +19,7 @@ interface Props {
|
||||||
|
|
||||||
const MarkdownRendererComponent: React.FC<Props> = ({ children, disableLinks }) => {
|
const MarkdownRendererComponent: React.FC<Props> = ({ children, disableLinks }) => {
|
||||||
const MarkdownLinkProcessingComponent: React.FC<EuiLinkAnchorProps> = useMemo(
|
const MarkdownLinkProcessingComponent: React.FC<EuiLinkAnchorProps> = useMemo(
|
||||||
|
// eslint-disable-next-line react/display-name
|
||||||
() => (props) => <MarkdownLink {...props} disableLinks={disableLinks} />,
|
() => (props) => <MarkdownLink {...props} disableLinks={disableLinks} />,
|
||||||
[disableLinks]
|
[disableLinks]
|
||||||
);
|
);
|
||||||
|
@ -38,4 +39,6 @@ const MarkdownRendererComponent: React.FC<Props> = ({ children, disableLinks })
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
MarkdownRendererComponent.displayName = 'MarkdownRendererComponent';
|
||||||
|
|
||||||
export const MarkdownRenderer = memo(MarkdownRendererComponent);
|
export const MarkdownRenderer = memo(MarkdownRendererComponent);
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { mount, ReactWrapper } from 'enzyme';
|
import { mount, ReactWrapper } from 'enzyme';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||||
import { Columns } from '../../paginated_table';
|
import { Columns } from '../../paginated_table';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { mount, ReactWrapper } from 'enzyme';
|
import { mount, ReactWrapper } from 'enzyme';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ThemeProvider } from 'styled-components';
|
import { ThemeProvider } from 'styled-components';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { act, renderHook } from '@testing-library/react-hooks';
|
import { act, renderHook } from '@testing-library/react-hooks';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
|
|
|
@ -99,4 +99,6 @@ export const SpyRouteComponent = memo<
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
SpyRouteComponent.displayName = 'SpyRouteComponent';
|
||||||
|
|
||||||
export const SpyRoute = withRouter(SpyRouteComponent);
|
export const SpyRoute = withRouter(SpyRouteComponent);
|
||||||
|
|
|
@ -35,7 +35,7 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name, @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
EuiFieldText: (props: any) => {
|
EuiFieldText: (props: any) => {
|
||||||
const { isInvalid, isLoading, fullWidth, inputRef, isDisabled, ...validInputProps } = props;
|
const { isInvalid, isLoading, fullWidth, inputRef, isDisabled, ...validInputProps } = props;
|
||||||
return <input {...validInputProps} />;
|
return <input {...validInputProps} />;
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { EuiButtonIcon, EuiLoadingSpinner, EuiToolTip } from '@elastic/eui';
|
import { EuiButtonIcon, EuiLoadingSpinner, EuiToolTip } from '@elastic/eui';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EuiBasicTableColumn,
|
EuiBasicTableColumn,
|
||||||
EuiTableActionsColumnType,
|
EuiTableActionsColumnType,
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { EuiButtonIcon, EuiBasicTableColumn, EuiToolTip } from '@elastic/eui';
|
import { EuiButtonIcon, EuiBasicTableColumn, EuiToolTip } from '@elastic/eui';
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EuiBasicTable,
|
EuiBasicTable,
|
||||||
EuiPanel,
|
EuiPanel,
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { has } from 'lodash/fp';
|
import { has } from 'lodash/fp';
|
||||||
import React, { useCallback, useMemo } from 'react';
|
import React, { useCallback, useMemo } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
|
@ -26,7 +26,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React, { useCallback, useMemo } from 'react';
|
import React, { useCallback, useMemo } from 'react';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,6 @@ export const EndpointList = () => {
|
||||||
name: i18n.translate('xpack.securitySolution.endpoint.list.hostStatus', {
|
name: i18n.translate('xpack.securitySolution.endpoint.list.hostStatus', {
|
||||||
defaultMessage: 'Agent status',
|
defaultMessage: 'Agent status',
|
||||||
}),
|
}),
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (hostStatus: HostInfo['host_status'], endpointInfo) => {
|
render: (hostStatus: HostInfo['host_status'], endpointInfo) => {
|
||||||
return (
|
return (
|
||||||
<EndpointAgentStatus hostStatus={hostStatus} endpointMetadata={endpointInfo.metadata} />
|
<EndpointAgentStatus hostStatus={hostStatus} endpointMetadata={endpointInfo.metadata} />
|
||||||
|
@ -315,7 +314,6 @@ export const EndpointList = () => {
|
||||||
defaultMessage: 'Policy',
|
defaultMessage: 'Policy',
|
||||||
}),
|
}),
|
||||||
truncateText: true,
|
truncateText: true,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (policy: HostInfo['metadata']['Endpoint']['policy']['applied'], item: HostInfo) => {
|
render: (policy: HostInfo['metadata']['Endpoint']['policy']['applied'], item: HostInfo) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -390,7 +388,6 @@ export const EndpointList = () => {
|
||||||
name: i18n.translate('xpack.securitySolution.endpoint.list.os', {
|
name: i18n.translate('xpack.securitySolution.endpoint.list.os', {
|
||||||
defaultMessage: 'OS',
|
defaultMessage: 'OS',
|
||||||
}),
|
}),
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (os: string) => {
|
render: (os: string) => {
|
||||||
return (
|
return (
|
||||||
<EuiToolTip content={os} anchorClassName="eui-textTruncate">
|
<EuiToolTip content={os} anchorClassName="eui-textTruncate">
|
||||||
|
@ -407,7 +404,6 @@ export const EndpointList = () => {
|
||||||
name: i18n.translate('xpack.securitySolution.endpoint.list.ip', {
|
name: i18n.translate('xpack.securitySolution.endpoint.list.ip', {
|
||||||
defaultMessage: 'IP address',
|
defaultMessage: 'IP address',
|
||||||
}),
|
}),
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (ip: string[]) => {
|
render: (ip: string[]) => {
|
||||||
return (
|
return (
|
||||||
<EuiToolTip
|
<EuiToolTip
|
||||||
|
@ -429,7 +425,6 @@ export const EndpointList = () => {
|
||||||
name: i18n.translate('xpack.securitySolution.endpoint.list.endpointVersion', {
|
name: i18n.translate('xpack.securitySolution.endpoint.list.endpointVersion', {
|
||||||
defaultMessage: 'Version',
|
defaultMessage: 'Version',
|
||||||
}),
|
}),
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (version: string) => {
|
render: (version: string) => {
|
||||||
return (
|
return (
|
||||||
<EuiToolTip content={version} anchorClassName="eui-textTruncate">
|
<EuiToolTip content={version} anchorClassName="eui-textTruncate">
|
||||||
|
@ -462,7 +457,6 @@ export const EndpointList = () => {
|
||||||
}),
|
}),
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (item: HostInfo) => {
|
render: (item: HostInfo) => {
|
||||||
return <TableRowActions endpointMetadata={item.metadata} />;
|
return <TableRowActions endpointMetadata={item.metadata} />;
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,7 +20,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import numeral from '@elastic/numeral';
|
import numeral from '@elastic/numeral';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -55,7 +55,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,6 @@ const columns: Array<EuiTableFieldDataColumnType<LinkPanelListItem>> = [
|
||||||
field: 'path',
|
field: 'path',
|
||||||
truncateText: true,
|
truncateText: true,
|
||||||
width: '80px',
|
width: '80px',
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
render: (path: string) => <Link path={path} copy={LINK_COPY} />,
|
render: (path: string) => <Link path={path} copy={LINK_COPY} />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -35,7 +35,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,6 @@ jest.mock('react-redux', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.mock('../timeline', () => ({
|
jest.mock('../timeline', () => ({
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
StatefulTimeline: () => <div />,
|
StatefulTimeline: () => <div />,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ jest.mock('../../../common/components/drag_and_drop/draggable_wrapper', () => {
|
||||||
const original = jest.requireActual('../../../common/components/drag_and_drop/draggable_wrapper');
|
const original = jest.requireActual('../../../common/components/drag_and_drop/draggable_wrapper');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
DraggableWrapper: () => <div data-test-subj="DraggableWrapper" />,
|
DraggableWrapper: () => <div data-test-subj="DraggableWrapper" />,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -68,7 +68,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { renderHook } from '@testing-library/react-hooks';
|
import { renderHook } from '@testing-library/react-hooks';
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { EuiButtonIcon, EuiLink } from '@elastic/eui';
|
import { EuiButtonIcon, EuiLink } from '@elastic/eui';
|
||||||
import { omit } from 'lodash/fp';
|
import { omit } from 'lodash/fp';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { defaultToEmptyTag } from '../../../../common/components/empty_value';
|
import { defaultToEmptyTag } from '../../../../common/components/empty_value';
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { EuiIcon, EuiToolTip } from '@elastic/eui';
|
import { EuiIcon, EuiToolTip } from '@elastic/eui';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { IconType } from '@elastic/eui';
|
import { IconType } from '@elastic/eui';
|
||||||
import { get } from 'lodash/fp';
|
import { get } from 'lodash/fp';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,7 +18,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ColumnHeaderOptions } from '../../../../../../common';
|
import { ColumnHeaderOptions } from '../../../../../../common';
|
||||||
import { TimelineNonEcsData } from '../../../../../../common/search_strategy/timeline';
|
import { TimelineNonEcsData } from '../../../../../../common/search_strategy/timeline';
|
||||||
|
|
|
@ -26,7 +26,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -21,7 +21,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -27,7 +27,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,7 +26,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -37,7 +37,6 @@ jest.mock('../../../../../common/lib/kibana/kibana_react', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
jest.mock('../../../../../common/components/draggables', () => ({
|
jest.mock('../../../../../common/components/draggables', () => ({
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
DefaultDraggable: () => <div data-test-subj="DefaultDraggable" />,
|
DefaultDraggable: () => <div data-test-subj="DefaultDraggable" />,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable react/display-name */
|
|
||||||
|
|
||||||
import { get } from 'lodash/fp';
|
import { get } from 'lodash/fp';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,7 +24,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -61,7 +61,6 @@ const rowRenderers: RowRenderer[] = [
|
||||||
{
|
{
|
||||||
id: RowRendererId.alerts,
|
id: RowRendererId.alerts,
|
||||||
isInstance: (ecs) => ecs === validEcs,
|
isInstance: (ecs) => ecs === validEcs,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
renderRow: () => <span data-test-subj="test-row-render" />,
|
renderRow: () => <span data-test-subj="test-row-render" />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
|
||||||
import {
|
import {
|
||||||
mockEndpointRegistryModificationEvent,
|
mockEndpointRegistryModificationEvent,
|
||||||
TestProviders,
|
TestProviders,
|
||||||
|
@ -24,7 +23,6 @@ jest.mock('@elastic/eui', () => {
|
||||||
const original = jest.requireActual('@elastic/eui');
|
const original = jest.requireActual('@elastic/eui');
|
||||||
return {
|
return {
|
||||||
...original,
|
...original,
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
EuiScreenReaderOnly: () => <></>,
|
EuiScreenReaderOnly: () => <></>,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -36,7 +34,6 @@ describe('RegistryEventDetails', () => {
|
||||||
const wrapper = mount(
|
const wrapper = mount(
|
||||||
<TestProviders>
|
<TestProviders>
|
||||||
<RegistryEventDetails
|
<RegistryEventDetails
|
||||||
browserFields={mockBrowserFields}
|
|
||||||
contextId="test-context"
|
contextId="test-context"
|
||||||
data={mockEndpointRegistryModificationEvent}
|
data={mockEndpointRegistryModificationEvent}
|
||||||
text={MODIFIED_REGISTRY_KEY}
|
text={MODIFIED_REGISTRY_KEY}
|
||||||
|
|
|
@ -8,14 +8,12 @@
|
||||||
import { get } from 'lodash/fp';
|
import { get } from 'lodash/fp';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { BrowserFields } from '../../../../../../common/containers/source';
|
|
||||||
import { Details, isNillEmptyOrNotFinite } from '../helpers';
|
import { Details, isNillEmptyOrNotFinite } from '../helpers';
|
||||||
import { Ecs } from '../../../../../../../common/ecs';
|
import { Ecs } from '../../../../../../../common/ecs';
|
||||||
|
|
||||||
import { RegistryEventDetailsLine } from './registry_event_details_line';
|
import { RegistryEventDetailsLine } from './registry_event_details_line';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
browserFields: BrowserFields;
|
|
||||||
contextId: string;
|
contextId: string;
|
||||||
data: Ecs;
|
data: Ecs;
|
||||||
isDraggable?: boolean;
|
isDraggable?: boolean;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue