Skip to content
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

Chore(preview middleware): fix eslint warnings #2977

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

heimwege
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Feb 28, 2025

🦋 Changeset detected

Latest commit: 8d3f05e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@sap-ux/preview-middleware Patch
@sap-ux/create Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@heimwege
Copy link
Contributor Author

heimwege commented Feb 28, 2025

So if the type assertion is in, Sonar complains about it being redundant

image

but if it's out eslint complains about an unsafe assignment of an error typed value.

image

Can this problem be solved at all? 🤔 @devinea

@heimwege heimwege added the preview-middleware @sap-ux/preview-middleware label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview-middleware @sap-ux/preview-middleware
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant