TypeScript: data-*
attributes produce type errors using svelte-check
version 3
#1740
Labels
data-*
attributes produce type errors using svelte-check
version 3
#1740
Flagged in Discord: https://discord.com/channels/689212587170201628/1048235099583418448/threads/1112376518862188675
See sveltejs/language-tools#1825
Many components forward
$$restProps
to the underlying HTML element. Data attributes (e.g.,data-test-id
) should be valid.svelte-check
version 3 applies a new transform which marksdata-*
attributes as errors.This library still uses
svelte-check
version 2; the first step would be to upgradesvelte-check
to the latest version to reproduce this error. See #1739The text was updated successfully, but these errors were encountered: