.storybook/preview.tsx
File preview.tsx
has 668 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { Global } from '@emotion/react';
import isChromatic from 'chromatic/isChromatic';
import { forceVisible } from 'react-lazyload';
import { Preview } from '@storybook/react';
Function decorators
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
story => {
useEffect(() => {
if (isChromatic()) {
forceVisible();
}