-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: warn about :
in attributes and props
#8633
Conversation
...to prevent ambiguity with Svelte directives closes #6823
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (this.dependencies.size > 0) { | ||
parent.cannot_use_innerhtml(); | ||
parent.not_static_content(); | ||
} | ||
|
||
// TODO Svelte 5: Think about moving this into the parser and make it an error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or should we merge this PR in the Svelte 3 branch and make it an error in Svelte 4?
looks like we need to delete the |
Ah woops, yeah I deleted that because I first looked into emitting a warning at the parser level but it can only error there, but while looking I saw this seemingly outdated ref thing which looks like a leftover from Svelte 2. If that's the case then yes delete the tests, else I'll revert that |
deleted the tests, we definitely don't need to still check for it. if people haven't upgraded from svelte 2 yet then they have bigger concerns 😆 |
...to prevent ambiguity with Svelte directives
closes #6823
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests
npm test
and lint the project withnpm run lint