mirror of
https://github.com/apache/superset.git
synced 2024-09-19 12:09:42 -04:00
fix lint errors
This commit is contained in:
parent
d76c5a77e3
commit
83272eca4e
@ -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,
|
||||
|
@ -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({
|
||||
|
@ -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'])]);
|
||||
|
||||
|
@ -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>`;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user