You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After forcing runes mode with runes: true in svelte.config.js, vite catchs new warnings but ESLint with svelte/valid-compile rule doesn't catch new warnings.
npm run build
> build
> vite build --config vite.config.ts
vite v6.3.5 building for production...
transforming (6) node_modules/svelte/src/internal/shared/utils.js10:14:26 PM [vite-plugin-svelte] src/Test1.svelte:3:8 `count` is updated, but is not declared
with `$state(...)`. Changing its value will not correctly trigger updates
https://svelte.dev/e/non_reactive_update
1: <script lang="ts">
2:
3: let count = 0;
^
4: function increment() {
5: count += 1;
10:14:27 PM [vite-plugin-svelte] src/Test2.svelte:3:8 `count` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
https://svelte.dev/e/non_reactive_update
1: <script lang="ts">
2: let { param } = $props();
3: let count = 0;
^
4: function increment() {
5: count += 1;
✓ 96 modules transformed.
dist/index.html 0.33 kB │ gzip: 0.23 kB
dist/assets/index-QBnuIdet.js 11.51 kB │ gzip: 5.06 kB
✓ built in 2.38s
but when I run
npm run eslint
I get only 1 error:
npm run eslint
> eslint
> eslint --config eslint.config.js .
/app_full/_test/src/Test2.svelte
3:9 error `count` is updated, but is not declared with `$state(...)`. Changing its value will not correctly trigger updates
https://svelte.dev/e/non_reactive_update(non_reactive_update) svelte/valid-compile
✖ 1 problem (1 error, 0 warnings)
What did you expect to happen?
2 errors: In files Test1.svelte and Test2.svelte
What actually happened?
1 error: Only in file Test2.svelte
Link to GitHub Repo with Minimal Reproducible Example
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.28.0
What version of
eslint-plugin-svelte
are you using?3.9.1
What did you do?
Configuration
After forcing runes mode with
runes: true
in svelte.config.js, vite catchs new warnings but ESLint withsvelte/valid-compile
rule doesn't catch new warnings.From there https://github.com/uh-zuh/eslint-plugin-svelte_bug_reproduction_valid-compile
I run:
and see 2 errors:
but when I run
I get only 1 error:
What did you expect to happen?
2 errors: In files Test1.svelte and Test2.svelte
What actually happened?
1 error: Only in file Test2.svelte
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/uh-zuh/eslint-plugin-svelte_bug_reproduction_valid-compile
Run following commands and compare results:
Additional comments
This approach doesn't help too: https://github.com/sveltejs/svelte-eslint-parser?tab=readme-ov-file#parseroptionssveltefeatures
The text was updated successfully, but these errors were encountered: