storybookjs / eslint-plugin-storybook

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

no-title-property-in-meta: fix dangling comma and highlighting #32

Closed yannbf closed 3 years ago

yannbf commented 3 years ago

Issue: N/A

What Changed

Before, the highlighting was done in the entire meta. Now it's only in the title node: image

I also fixed an issue where if the code is like this:

export default {
  title: 'Button',
  component: Button
}

would be fixed to this, leaving a comma:

export default {
  ,
  component: Button
}

Checklist

Check the ones applicable to your change:

Change Type

Indicate the type of change your pull request is:

github-actions[bot] commented 3 years ago

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