-
Notifications
You must be signed in to change notification settings - Fork 97
A <textarea> can have either a value attribute or (equivalently) child content, but not boths #458
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
Comments
Please provide a code snippet and/or reproduction link (Stackblitz or GitHub). Just from looking at the screenshot there's not much we can tell |
the code snippet <textarea
on:keydown={onKeyDown}
placeholder="put a bunch of series here"
bind:value={text}>
</textarea> package json
prettierrc
viteconfig
svelte config
eslintrc.js
|
This is a combination of your I think the best fix would be to handle this special case within the Svelte parser and not error in this case. <!-- prettier-ignore -->
<textarea
on:keydown={onKeyDown}
placeholder="put a bunch of series here"
bind:value={text}
></textarea> I'm also wondering if we should align our formatting with that of Prettier's HTML formatting, i.e. don't force an empty line in this case, instead format it like in the code snippet above. |
I got this error, how can I disable it ?
and this is my prettierrc
The text was updated successfully, but these errors were encountered: