Skip to content

Build: Fix linting & docs#33601

Merged
ndelangen merged 3 commits into
nextfrom
norbert/linting-and-docs-changes
Jan 20, 2026
Merged

Build: Fix linting & docs#33601
ndelangen merged 3 commits into
nextfrom
norbert/linting-and-docs-changes

Conversation

@ndelangen
Copy link
Copy Markdown
Member

@ndelangen ndelangen commented Jan 20, 2026

What I did

Address these:
https://github.com/storybookjs/storybook/actions/runs/21178964765/job/60915649042

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

None required, these are3 only files getting linted and running a compile.

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook publish.yml --field pr=<PR_NUMBER>

Summary by CodeRabbit

  • Style

    • Applied code formatting and whitespace improvements for consistency.
  • Documentation

    • Updated the ESLint plugin rule description for the default-exports rule.

✏️ Tip: You can customize this high-level summary in your review settings.

@ndelangen ndelangen changed the title fix linting Build: Fix linting & docs Jan 20, 2026
@ndelangen ndelangen self-assigned this Jan 20, 2026
@ndelangen ndelangen added build Internal-facing build tooling & test updates ci:docs Run the CI jobs for documentation checks only. labels Jan 20, 2026
@ndelangen ndelangen marked this pull request as ready for review January 20, 2026 16:44
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 20, 2026

📝 Walkthrough

Walkthrough

Two files modified: whitespace and CSS selector formatting adjustments in the preview head HTML file, and a simplified description update for the ESLint plugin's default-exports rule in documentation. No functional or logic changes.

Changes

Cohort / File(s) Summary
HTML/CSS Formatting
code/core/assets/server/base-preview-head.html
Whitespace and selector-combinator formatting adjustments (spaces around > combinator, media query commas, nested selectors). No semantic or behavioral changes.
Documentation Update
docs/configure/integration/eslint-plugin.mdx
Simplified the storybook/default-exports rule description from conditional language about CSF Next to a straightforward statement: "Story files should have a default export."

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs


Comment @coderabbitai help to get the list of available commands and usage tips.

| [`storybook/await-interactions`](https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/await-interactions.md) | Interactions should be awaited | ✅ | <ul><li>addon-interactions</li><li>flat/addon-interactions</li><li>recommended</li><li>flat/recommended</li></ul> |
| [`storybook/context-in-play-function`](https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/context-in-play-function.md) | Pass a context when invoking play function of another story | | <ul><li>recommended</li><li>flat/recommended</li><li>addon-interactions</li><li>flat/addon-interactions</li></ul> |
| [`storybook/csf-component`](https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/csf-component.md) | The component property should be set | | <ul><li>csf</li><li>flat/csf</li><li>csf-strict</li><li>flat/csf-strict</li></ul> |
| [`storybook/default-exports`](https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/default-exports.md) | Story files (unless using [CSF Next](../../api/csf/csf-next.mdx)) should have a default export | ✅ | <ul><li>csf</li><li>flat/csf</li><li>recommended</li><li>flat/recommended</li><li>csf-strict</li><li>flat/csf-strict</li></ul> |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ndelangen — I'd prefer the detail about CSF Next stay in, if possible.

The error appears to be a versioning one, not a formatting one.

Copy link
Copy Markdown
Member Author

@ndelangen ndelangen Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange @kylegach I reset my branch, and ran the build and lint steps, and this change came back.

The error during publishing had this:

error: Your local changes to the following files would be overwritten by checkout:
	docs/configure/integration/eslint-plugin.mdx

I'll try some more on my end.

Update: yes it keep getting removed by something in our toolset!
Screenshot 2026-01-20 at 17 53 39

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's maybe generated by something, based on this:

# Stories file should have a default export (default-exports)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. I'll deal with it later. Thanks for the sleuthing!

@ndelangen
Copy link
Copy Markdown
Member Author

As discussed with @kylegach, I'll merge this change as the automation is set up to create.
So that we can do the release tomorrow, and have this not be a possible complication in that.

@ndelangen ndelangen merged commit 918f84b into next Jan 20, 2026
15 checks passed
@ndelangen ndelangen deleted the norbert/linting-and-docs-changes branch January 20, 2026 17:00
@github-actions github-actions Bot mentioned this pull request Jan 20, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Internal-facing build tooling & test updates ci:docs Run the CI jobs for documentation checks only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants