Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRR-1011: Fixed storybook-utils eslint and prettier lint rules to not conflict #91

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/actions/action.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {action as addonAction} from '@storybook/addon-actions';

const action = (eventName, include = ['type']) => {
function action(eventName, include = ['type']) {
const handler = addonAction(eventName);
return ev => {
// Ducktyping for React synthetic event to extract the specified members to improve
Expand All @@ -17,7 +17,7 @@ const action = (eventName, include = ['type']) => {

handler(ev);
};
};
}

export default action;
export {action};
4 changes: 2 additions & 2 deletions addons/actions/configure.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {configureActions as addonConfigureActions} from '@storybook/addon-actions';

const configureActions = opts => {
function configureActions(opts) {
return addonConfigureActions({
// TODO: Set the limit of 200 as a workaround.
// We hope storybook to fix the action log to be sorted as the latest on the top.
// Limit the number of items logged into the actions panel
limit: 200,
...opts
});
};
}

export default configureActions;
export {configureActions};
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const loadStories = stories => {
function loadStories(stories) {
return () => stories.keys().forEach(filename => stories(filename));
};
}

export default loadStories;
export {loadStories};
Expand Down
Loading