Repository navigation
Clear the type-import and unused-variable lint findings - #2736
Draft
bramvanderholst wants to merge 4 commits into
Draft
bramvanderholst wants to merge 4 commits into
bramvanderholst wants to merge 4 commits into
Conversation
Only the fixes of eslint --fix for this rule, formatted with Prettier. The build output stays the same, because TypeScript and SWC already drop imports that are only types.
Components such as ConfigurableOptionValueImage and WishlistItemActionCard take props like uid and selectedOptions out of ...rest, so ActionCard does not receive them. Test mocks keep parameters such as _options for their types. no-unused-vars reported both.
Unused imports, variables and destructured props are gone. An unused parameter of an exported function or a type guard gets a _ prefix, so callers and plugins keep the same signature. next-config and cli include their rebuilt dist.
Image imported sxx from next-ui, and next-ui depends on image. config.ts reads __NEXT_IMAGE_OPTS once, and imageUrl() uses that value.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bramvanderholst
marked this pull request as draft
November 30, 2026 15:18
🦋 Changeset detectedLatest commit: 9a9c5fb The changes in this PR will be included in the next version bump. This PR includes changesets to release 87 packages
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 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written by 🤖:
Change
One commit for each kind of change:
import typefor each import that only imports types: 288 findings of@typescript-eslint/consistent-type-importsin 163 files. The commit has only the fixes ofeslint --fixfor this rule.@typescript-eslint/no-unused-varsin@graphcommerce/eslint-config-pwagetsignoreRestSiblings: trueandargsIgnorePattern: '^_'. Components take props such asuidout of...restbefore they give the rest toActionCard. Test mocks keep parameters such as_optionsfor their types._prefix, so callers and plugins keep the same signature.next-configandcliinclude their rebuiltdist.@graphcommerce/imagemakes thesxarray itself, because@graphcommerce/next-uidepends on@graphcommerce/image.config.tsreads__NEXT_IMAGE_OPTSone time, andimageUrl()uses that value.For #2715
The Oxlint config of #2715 has
'no-unused-vars': 'error'. AddignoreRestSiblings: trueandargsIgnorePattern: '^_'there too. 14 files of commit 1 are also in #2715. #2715 changes no import line in these files.Not in this PR
examples/magento-storyblok/.storyblok/types/storyblok.d.tshas an unused import.storyblok typesgenerates this file.display-name,no-consoleand others.Test plan
tsgo --noEmit -p .passes inexamples/magento-graphcmsandexamples/magento-open-source.@graphcommerce/algolia-products,algolia-categories,magento-payment-adyen,magento-payment-braintree,magento-payment-paypalandmagento-search-overlayactive inmagento-graphcms,tsgoreports 36 errors in these packages. None of them is on a changed line.yarn workspace @graphcommerce/magento-graphcms dev. Open/,/men/photographyand/p/ages-at-fashion-gc-442-sock. The pages render with their images.