storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook
MIT License
248 stars 56 forks source link

fix(story-exports): stop highlighting the entire code on error #91

Closed yannbf closed 2 years ago

yannbf commented 2 years ago

Issue: N/A

What Changed

The story-exports highlight was done on the entire file which was weird.

Now it highlights the first non-import statement:

image

Might still be a little weird, but better than before for sure. @shilman Thoughts?

Checklist

Check the ones applicable to your change:

Change Type

Indicate the type of change your pull request is:

github-actions[bot] commented 2 years ago

:rocket: PR was released in v0.5.10 :rocket: