fix lint errors

This commit is contained in:
Krist Wongsuphasawat 2019-02-07 17:49:25 -08:00 committed by Yongjie Zhao
parent d76c5a77e3
commit 83272eca4e
4 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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({

View File

@ -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'])]);

View File

@ -215,7 +215,7 @@ export function tipFactory(layer) {
? layer.descriptionColumns.map(c => d[c])
: Object.values(d);
return `<div><strong>${title}</strong></div><br/>` + `<div>${body.join(', ')}</div>`;
return `<div><strong>${title}</strong></div><br/><div>${body.join(', ')}</div>`;
});
}