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?
8.20.0
What version of eslint-plugin-svelte
are you using?
2.2.0
What did you do?
Configuration
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:svelte/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking'
],
parserOptions: {
project: ['./tsconfig.json'],
extraFileExtensions: ['.svelte']
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
ignorePatterns: ['node_modules', 'dist']
}
<script lang="ts">
import { _ } from 'svelte-i18n';
</script>
<main>
<input name={$_('test')}>
</main>
What did you expect to happen?
No lint issues to occur.
What actually happened?
Unsafe call of an
any
typed value. @typescript-eslint/no-unsafe-call
for $_('test')
. This doesn't happen with https://github.com/sveltejs/eslint-plugin-svelte3.
Link to Minimal Reproducible Example
https://github.com/binarious/eslint-plugin-svelte-repro
Additional comments
No response