mirror of
https://github.com/apache/superset.git
synced 2024-09-19 20:19:37 -04:00
build: fix lint (#245)
This commit is contained in:
parent
2923a9318d
commit
a5a4f1bcec
@ -162,8 +162,9 @@ export default class SuperChart extends React.PureComponent<Props, {}> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { heightInfo, widthInfo, BoundingBox } = this.parseDimension(this
|
||||
.props as PropsWithDefault);
|
||||
const { heightInfo, widthInfo, BoundingBox } = this.parseDimension(
|
||||
this.props as PropsWithDefault,
|
||||
);
|
||||
|
||||
// If any of the dimension is dynamic, get parent's dimension
|
||||
if (widthInfo.isDynamic || heightInfo.isDynamic) {
|
||||
|
@ -7,17 +7,11 @@ export { default as createLoadableRenderer } from './components/createLoadableRe
|
||||
export { default as reactify } from './components/reactify';
|
||||
export { default as SuperChart } from './components/SuperChart';
|
||||
|
||||
export {
|
||||
default as getChartBuildQueryRegistry,
|
||||
} from './registries/ChartBuildQueryRegistrySingleton';
|
||||
export { default as getChartBuildQueryRegistry } from './registries/ChartBuildQueryRegistrySingleton';
|
||||
export { default as getChartComponentRegistry } from './registries/ChartComponentRegistrySingleton';
|
||||
export {
|
||||
default as getChartControlPanelRegistry,
|
||||
} from './registries/ChartControlPanelRegistrySingleton';
|
||||
export { default as getChartControlPanelRegistry } from './registries/ChartControlPanelRegistrySingleton';
|
||||
export { default as getChartMetadataRegistry } from './registries/ChartMetadataRegistrySingleton';
|
||||
export {
|
||||
default as getChartTransformPropsRegistry,
|
||||
} from './registries/ChartTransformPropsRegistrySingleton';
|
||||
export { default as getChartTransformPropsRegistry } from './registries/ChartTransformPropsRegistrySingleton';
|
||||
|
||||
export { default as ChartDataProvider } from './components/ChartDataProvider';
|
||||
|
||||
|
@ -252,9 +252,7 @@ describe('Registry', () => {
|
||||
registry.registerLoader('b', () => 'test2');
|
||||
registry.registerLoader('c', () => Promise.resolve('test3'));
|
||||
|
||||
return registry
|
||||
.entriesAsPromise()
|
||||
.then(entries =>
|
||||
return registry.entriesAsPromise().then(entries =>
|
||||
expect(entries).toEqual([
|
||||
{ key: 'a', value: 'test1' },
|
||||
{ key: 'b', value: 'test2' },
|
||||
|
@ -18,7 +18,8 @@ type CreateEncoderFactoryParams<Config extends EncodingConfig> = {
|
||||
* if there are missing fields
|
||||
*/
|
||||
completeEncoding: (e: Partial<DeriveEncoding<Config>>) => DeriveEncoding<Config>;
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
export default function createEncoderFactory<Config extends EncodingConfig>(
|
||||
params: CreateEncoderFactoryParams<Config>,
|
||||
|
@ -17,7 +17,7 @@ function isChannelDefWithAxisSupport(
|
||||
|
||||
export type CompleteAxisConfig =
|
||||
| false
|
||||
| RequiredSome<
|
||||
| (RequiredSome<
|
||||
Omit<AxisConfig, 'labelOverlap'>,
|
||||
| 'labelAngle'
|
||||
| 'labelFlush'
|
||||
@ -29,7 +29,7 @@ export type CompleteAxisConfig =
|
||||
| 'titlePadding'
|
||||
> & {
|
||||
labelOverlap: LabelOverlapStrategy;
|
||||
};
|
||||
});
|
||||
|
||||
export default function completeAxisConfig(
|
||||
channelType: ChannelType,
|
||||
|
@ -9,6 +9,4 @@ export {
|
||||
|
||||
export { default as createD3NumberFormatter } from './factories/createD3NumberFormatter';
|
||||
export { default as createDurationFormatter } from './factories/createDurationFormatter';
|
||||
export {
|
||||
default as createSiAtMostNDigitFormatter,
|
||||
} from './factories/createSiAtMostNDigitFormatter';
|
||||
export { default as createSiAtMostNDigitFormatter } from './factories/createSiAtMostNDigitFormatter';
|
||||
|
@ -17,7 +17,8 @@ export type QueryObjectFilterClause = {
|
||||
}
|
||||
| {
|
||||
op: UnaryOperator;
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
export type QueryObjectMetric = {
|
||||
label: string;
|
||||
|
Loading…
Reference in New Issue
Block a user