-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.21.0
What version of eslint-plugin-svelte
are you using?
3.0.0
What did you do?
Configuration
import js from "@eslint/js";
import prettier from "eslint-config-prettier";
import svelte from "eslint-plugin-svelte";
import globals from "globals";
import ts from "typescript-eslint";
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
...svelte.configs["flat/prettier"],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
ignores: ["build/", ".svelte-kit/"],
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/no-unused-vars": 0,
"svelte/no-at-html-tags": 0,
"svelte/no-target-blank": 2,
"svelte/prefer-const": 2,
"svelte/require-each-key": 2,
"svelte/require-stores-init": 2,
"svelte/valid-each-key": 2,
"svelte/no-navigation-without-base": 2,
},
}
);
let store: any = $state(null);
Error
Parsing error: Unexpected token :
What did you expect to happen?
It should works with types
What actually happened?
Unable to parse when there is a type in code
Link to GitHub Repo with Minimal Reproducible Example
None
Additional comments
No response
Jerboas86
Metadata
Metadata
Assignees
Labels
No labels