fix: disable prefer destructuring on index.ts

This commit is contained in:
lonyele 2019-07-29 23:59:14 +09:00
parent 2b7cc7838d
commit 62f6de1e58

View File

@ -1,3 +1,4 @@
/* eslint-disable prefer-destructuring */
import { start } from '@storybook/core/client';
import './globals';
@ -12,11 +13,12 @@ export const storiesOf: ClientApi['storiesOf'] = (kind, m) => {
framework,
});
};
export const configure: ClientApi['configure'] = (...args) => api.configure(...args, framework);
export const { addDecorator } = api.clientApi;
export const { addParameters } = api.clientApi;
export const { clearDecorators } = api.clientApi;
export const { setAddon } = api.clientApi;
export const { forceReRender } = api;
export const { getStorybook } = api.clientApi;
export const { raw } = api.clientApi;
export const addDecorator: ClientApi['addDecorator'] = api.clientApi.addDecorator;
export const addParameters: ClientApi['addParameters'] = api.clientApi.addParameters;
export const clearDecorators: ClientApi['clearDecorators'] = api.clientApi.clearDecorators;
export const setAddon: ClientApi['setAddon'] = api.clientApi.setAddon;
export const forceReRender: ClientApi['forceReRender'] = api.forceReRender;
export const getStorybook: ClientApi['getStorybook'] = api.clientApi.getStorybook;
export const raw: ClientApi['raw'] = api.clientApi.raw;