Skip to content

enable knip reports for opencost workspace - #11455

Open
Zetaforeal wants to merge 1 commit into
backstage:mainfrom
Zetaforeal:opencost/knip
Open

Zetaforeal wants to merge 1 commit into
backstage:mainfrom
Zetaforeal:opencost/knip

Conversation

@Zetaforeal

@Zetaforeal Zetaforeal commented Oct 6, 2026 •

Copy link
Copy Markdown

Hey, I just made a Pull Request!

Issue: #5992

Enabled knipReports and removed all unused dependencies for the opencost workspace.

Removed from plugins/opencost/package.json — none of these had a single reference anywhere in the plugin:

  • @material-ui/styles
  • @testing-library/dom
  • @testing-library/jest-dom
  • @testing-library/react

@testing-library/react was the only transitive source of @types/react-dom, so removing it broke the react-dom type reference in @backstage/cli's asset types (yarn tsc:full failed with TS2688: Cannot find type definition file for 'react-dom'). @types/react-dom is now declared explicitly, which is what other workspaces such as ilert already do.

Verified locally inside workspaces/opencost with yarn install, yarn build:knip-reports --ci, yarn prettier:check, yarn tsc:full, yarn lint:all and yarn test plugins/opencost.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-opencost workspaces/opencost/plugins/opencost patch v0.24.0

@hopehadfield

Copy link
Copy Markdown
Contributor

Hey @Zetaforeal, thanks for the contribution! Looks like this might need a rebase. Should be good to go once the merge conflicts are resolved.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants