sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
306 stars 37 forks source link

Interface $$Events is labeled as unused but necessary for Typescript #843

Open justingolden21 opened 2 months ago

justingolden21 commented 2 months ago

Before You File a Bug Report Please Confirm You Have Done The Following...

What version of ESLint are you using?

^8.56.0

What version of eslint-plugin-svelte are you using?

^2.35.1

What did you do?

Configuration ``` module.exports = { root: true, parser: '@typescript-eslint/parser', extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier' ], plugins: ['prettier', '@typescript-eslint'], ignorePatterns: ['*.cjs'], parserOptions: { sourceType: 'module', ecmaVersion: 2022 }, env: { browser: true, es2017: true, node: true }, globals: { gtag: true, __version__: true }, overrides: [ { files: ['*.svelte'], // Apply these settings to Svelte files parser: 'svelte-eslint-parser', // Use the Svelte parser for .svelte files parserOptions: { parser: '@typescript-eslint/parser' // Use TypeScript parser for inside Githubissues.
  • Githubissues is a development platform for aggregating issues.