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

Add ignoreCommonAttribWarnings option, ignore common attributes which are also not already defined on the component #54

Merged
merged 2 commits into from
May 3, 2024

Conversation

patricknelson
Copy link
Owner

@patricknelson patricknelson commented Apr 23, 2024

Fix for #53. Add ignoreCommonAttribWarnings option to help ignore common attributes which are also not already defined on the component (useful in development only). Avoids warnings like <Component> was created with unknown prop 'id'.

  • Add ignoreCommonAttribWarnings option (proof of concept)
  • Add unit tests to validate each state, including false, true and array of explicitly defined attribs

…t already defined on the component. Need unit tests...
Copy link

vercel bot commented Apr 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-retag ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 1:59am

…re also not already defined on the component (while in development mode).
@patricknelson patricknelson marked this pull request as ready for review May 3, 2024 01:59
@patricknelson patricknelson merged commit 8e06688 into main May 3, 2024
3 checks passed
@patricknelson patricknelson deleted the issue-53-ignore-common-attributes branch May 3, 2024 02:01
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.

1 participant