Skip to content

Commit

Permalink
chore: running prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewrmarshall committed Nov 15, 2024
1 parent 891c8a1 commit 75e4ce8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions apps/storybook-react-native/.storybook/storybook.requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ import {
addParameters,
addArgsEnhancer,
clearDecorators,
} from "@storybook/react-native";
} from '@storybook/react-native';

global.STORIES = [
{
titlePrefix: "",
directory: "../../packages/design-system-react-native/src",
files: "**/*.stories.@(js|jsx|ts|tsx)",
titlePrefix: '',
directory: '../../packages/design-system-react-native/src',
files: '**/*.stories.@(js|jsx|ts|tsx)',
importPathMatcher:
"^(?:\\.\\.\\/\\.\\.\\/packages\\/design-system-react-native\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$",
'^(?:\\.\\.\\/\\.\\.\\/packages\\/design-system-react-native\\/src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$',
},
];

import "@storybook/addon-ondevice-controls/register";
import "@storybook/addon-ondevice-actions/register";
import '@storybook/addon-ondevice-controls/register';
import '@storybook/addon-ondevice-actions/register';

import { argsEnhancers } from "@storybook/addon-actions/dist/modern/preset/addArgs";
import { argsEnhancers } from '@storybook/addon-actions/dist/modern/preset/addArgs';

import { decorators, parameters } from "./preview";
import { decorators, parameters } from './preview';

if (decorators) {
if (__DEV__) {
// stops the warning from showing on every HMR
require("react-native").LogBox.ignoreLogs([
"`clearDecorators` is deprecated and will be removed in Storybook 7.0",
require('react-native').LogBox.ignoreLogs([
'`clearDecorators` is deprecated and will be removed in Storybook 7.0',
]);
}
// workaround for global decorators getting infinitely applied on HMR, see https://github.com/storybookjs/react-native/issues/185
Expand All @@ -47,7 +47,7 @@ try {

const getStories = () => {
return {
"./../../packages/design-system-react-native/src/components/Button.stories.tsx": require("../../../packages/design-system-react-native/src/components/Button.stories.tsx"),
'./../../packages/design-system-react-native/src/components/Button.stories.tsx': require('../../../packages/design-system-react-native/src/components/Button.stories.tsx'),
};
};

Expand Down

0 comments on commit 75e4ce8

Please sign in to comment.