/home/nato/Code/github.com/NatoBoram/Leanish/src/lib/SubscribeButton.svelte
11:7 error Unsafe member access .subscribed on an `any` value @typescript-eslint/no-unsafe-member-access
✖ 1 problem (1 error, 0 warnings)
Link to GitHub Repo with Minimal Reproducible Example
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
^8.44.0
What version of
eslint-plugin-svelte
are you using?^2.32.2
What did you do?
Configuration
```js module.exports = { root: true, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:@typescript-eslint/strict', 'plugin:svelte/recommended', 'plugin:svelte/prettier', 'prettier', ], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], parserOptions: { sourceType: 'module', ecmaVersion: 2020, project: './tsconfig.eslint.json', extraFileExtensions: ['.svelte'], }, env: { browser: true, es2017: true, node: true, }, overrides: [ { files: ['*.svelte'], parser: 'svelte-eslint-parser', parserOptions: { parser: '@typescript-eslint/parser', }, }, ], rules: { '@typescript-eslint/consistent-type-exports': 'error', '@typescript-eslint/consistent-type-imports': 'error', '@typescript-eslint/default-param-last': 'error', '@typescript-eslint/method-signature-style': 'error', '@typescript-eslint/no-import-type-side-effects': 'error', '@typescript-eslint/prefer-readonly': 'error', '@typescript-eslint/promise-function-async': ['error', { checkArrowFunctions: false }], '@typescript-eslint/require-array-sort-compare': 'error', '@typescript-eslint/return-await': 'error', '@typescript-eslint/sort-type-constituents': 'error', '@typescript-eslint/switch-exhaustiveness-check': 'error', // SvelteKit uses that for returning errors in routes '@typescript-eslint/no-throw-literal': 'off', // Receiving markdown from the API 'svelte/no-at-html-tags': 'off', }, } ```What did you expect to happen?
Linting should pass
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/NatoBoram/bug-report-terrtc/commit/8c5c4c89aa1bb4e0a86cc8ef05c90b14dd7a53f5(Deleted)Additional comments
This happens when
plugin:@typescript-eslint/recommended-requiring-type-checking
is enabledI think this can be worked around by changing the name of the variable after
:then