Generated .stories file doesn't have newline after import
pixelbandito opened this issue · 0 comments
pixelbandito commented
Getting an eslint error in MyComponent.stories.js
. The linter error is "Expected 1 newline after import statement not followed by another import. (import/newline-after-import)"
This error doesn't appear in the main component file, just the story.
Current:
import React from 'react';
import { storiesOf } from '@storybook/react';
import MyComponent from './MyComponent';
storiesOf('MyComponent', module).add('MyComponent', () => (
<div>
<MyComponent />
</div>
));
Desired:
import React from 'react';
import { storiesOf } from '@storybook/react';
import MyComponent from './MyComponent';
storiesOf('MyComponent', module).add('MyComponent', () => (
<div>
<MyComponent />
</div>
));