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.0.0
What version of eslint-plugin-svelte
are you using?
2.36.0
What did you do?
Configuration
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginSvelte from 'eslint-plugin-svelte';
export default [
{ ignores: ['.svelte-kit'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...eslintPluginSvelte.configs['flat/recommended'],
];
<script lang="ts">
let count: number = 0;
</script>
{count}
What did you expect to happen?
The linter to be happy
What actually happened?
2:11 error Parsing error: Unexpected token :
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/MathiasWP/eslint-9-svelte-typescript-error
Additional comments
No response
Metadata
Metadata
Assignees
Labels
No labels