mirror of https://github.com/sveltejs/svelte
feat: migrate warnings (#11607)
Also contains a changeset for the previous work because we forgot that. Also added more code mappings.pull/11608/head
parent
2bc39b1de2
commit
faced066bd
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: add backwards-compat for old warning codes in legacy mode
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
function foo() {
|
||||||
|
// svelte-ignore non-top-level-reactive-declaration
|
||||||
|
$: x = 1;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- svelte-ignore a11y-something-something -->
|
||||||
|
<div></div>
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
function foo() {
|
||||||
|
// svelte-ignore reactive_declaration_invalid_placement
|
||||||
|
$: x = 1;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- svelte-ignore a11y_something_something -->
|
||||||
|
<div></div>
|
Loading…
Reference in new issue