From 83272eca4e4c8b1b1d9bded72726839b9e3e1f0a Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Thu, 7 Feb 2019 17:49:25 -0800 Subject: [PATCH] fix lint errors --- .../superset-ui-legacy-plugin-chart-partition/src/Partition.js | 1 + .../superset-ui-legacy-plugin-chart-treemap/src/Treemap.js | 1 + .../packages/superset-ui-legacy-preset-nvd3/src/PropTypes.js | 2 +- .../packages/superset-ui-legacy-preset-nvd3/src/utils.js | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-partition/src/Partition.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-partition/src/Partition.js index f52c51221a..3dcb4d5d5e 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-partition/src/Partition.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-partition/src/Partition.js @@ -51,6 +51,7 @@ function init(root) { // Declare PropTypes for recursive data structures // https://github.com/facebook/react/issues/5676 +/* eslint-disable-next-line no-undef */ const lazyFunction = f => () => f().apply(this, arguments); const leafType = PropTypes.shape({ name: PropTypes.string, diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-treemap/src/Treemap.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-treemap/src/Treemap.js index 369e9e03be..9b8317f9eb 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-treemap/src/Treemap.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-treemap/src/Treemap.js @@ -27,6 +27,7 @@ import './Treemap.css'; // Declare PropTypes for recursive data structures // https://github.com/facebook/react/issues/5676 +/* eslint-disable-next-line no-undef */ const lazyFunction = f => () => f().apply(this, arguments); const leafType = PropTypes.shape({ diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/PropTypes.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/PropTypes.js index 01a034b345..1ebcd48c18 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/PropTypes.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/PropTypes.js @@ -18,7 +18,7 @@ */ /* eslint-disable sort-keys */ import PropTypes from 'prop-types'; -import { ANNOTATION_TYPES } from '../../modules/AnnotationTypes'; +import { ANNOTATION_TYPES } from './vendor/superset/AnnotationTypes'; export const numberOrAutoType = PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['auto'])]); diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/utils.js b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/utils.js index 9f4f16a018..11500f03c4 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/utils.js +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-preset-nvd3/src/utils.js @@ -215,7 +215,7 @@ export function tipFactory(layer) { ? layer.descriptionColumns.map(c => d[c]) : Object.values(d); - return `
${title}

` + `
${body.join(', ')}
`; + return `
${title}

${body.join(', ')}
`; }); }