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

feat: add ignorePropertyPatterns property and rename ignorePatterns to ignoreTypePatterns in no-unused-props rule #1132

Merged
merged 8 commits into from
Mar 17, 2025

Conversation

baseballyama
Copy link
Member

@baseballyama baseballyama commented Mar 17, 2025

After reconsidering, merging #1135 should also resolve the branded types issue. This is because branded types typically originate from external libraries, meaning their properties are externally defined and should thus be fixed by #1135.

Therefore, this becomes a purely additive feature. However, I still think it’s beneficial to allow ignoring patterns based on both type names and properties.

-> I tested this in a project that uses branded types and confirmed that it’s fixed as expected.

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: 0619c15

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

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte Minor

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

Copy link
Contributor

github-actions bot commented Mar 17, 2025

Try the Instant Preview in Online Playground

ESLint Online Playground

Install the Instant Preview to Your Local

npm i https://pkg.pr.new/eslint-plugin-svelte@1132

Published Instant Preview Packages:

View Commit

@baseballyama baseballyama force-pushed the feat/enhance-no-unused-props branch 4 times, most recently from 336e654 to 893166c Compare March 17, 2025 12:32
@baseballyama baseballyama marked this pull request as ready for review March 17, 2025 13:00
@baseballyama baseballyama force-pushed the feat/enhance-no-unused-props branch from 893166c to 425d233 Compare March 17, 2025 13:18
@baseballyama baseballyama force-pushed the feat/enhance-no-unused-props branch from 842fdad to e28d8cf Compare March 17, 2025 13:59
…s` to `ignoreTypePatterns` in `no-unused-props` rule
@baseballyama baseballyama force-pushed the feat/enhance-no-unused-props branch from e28d8cf to 435691b Compare March 17, 2025 14:11
@baseballyama
Copy link
Member Author

I’ll merge this before US working hours start to minimize the impact.

@baseballyama baseballyama merged commit 30c1e5f into main Mar 17, 2025
17 checks passed
@baseballyama baseballyama deleted the feat/enhance-no-unused-props branch March 17, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant