-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook: add eslint-plugin-storybook and fix issues #446
Conversation
|
size-limit report 📦
|
babelOptions: { | ||
presets: ['@babel/preset-react'], | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a necessary addition to get JSX playing nicely; the ecmaFeatures: { jsx: true } }
wasn't sufficient on its own.
@@ -21,6 +29,7 @@ module.exports = { | |||
}, | |||
rules: { | |||
'no-smart-quotes/no-smart-quotes': 'error', | |||
'react/react-in-jsx-scope': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed in React 17+.
- Fix style attributes that were strings instead of objects - Fix misconfigured `docs` meta property
* develop: Tabs: fix initial tab selection in more cases (#449) Storybook: add eslint-plugin-storybook and fix issues (#446) feat(storybook): install Measure and Outline addons (#445) Docs: update copy for Button's on-background usage (#444) Storybook: Convert stories to CSF 3 (#435) feat(tabs): fire event when tab selected programmatically (#442) ToggleButton: indicate toggle button state on underlying button elements (#438) Tooltip, DropdownMenu: replace popperjs with floating-ui (#434) Site: improve imports (#433)
* feat(storybook): add eslint-plugin-storybook and fix issues * fix(storybook): remove unused args from story signatures * fix(storybook): remove previously ignored linting issues * fix(storybook): fix missing and erroring React stories - Fix style attributes that were strings instead of objects - Fix misconfigured `docs` meta property
This change: (check at least one)
Is this a breaking change? (check one)
Is the: (complete all)
What does this change address?
Resolves #286
How does this change work?
Additional context
This is currently at odds with storybookjs/storybook#13362 because removing the unused argument to the
render
function in the React stories causes the Docs tab to show No code available for each example. The web components Storybook doesn't suffer from this issue.