You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely unrelated, but another "unused" thing:
const [, month, day] = date.split('-').map(Number);
error '' is assigned a value but never used @typescript-eslint/no-unused-vars
I think this is unrelated. The responsibility doesn't fall on this plugin to determine what unused _ tokens should signal to the ESLint engine.
I usually have to set up a set of rules to configure what you are expecting. I followed this configuration.
The RFC about $$Events don't seem to have been merged yet. sveltejs/rfcs#38
I don't want to fully support it yet to avoid a lot of breaking changes.
If you want to support it, we can add it as an experimental feature. Please consider opening a PR.
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
What did you expect to happen?
This should not be an error since $$Events is necessary for on:change and otherwise I get errors from Typescript and when running
check
:svelte-check --tsconfig ./tsconfig.json
What actually happened?
Toggle.svelte
5:12 error '$$Events' is defined but never used @typescript-eslint/no-unused-vars
Link to GitHub Repo with Minimal Reproducible Example
https://eslint-online-playground.netlify.app/#eNplU8tu2zAQ/JUFEcCX2OrZlY0AbYAUSIsCzS0KEFpc23QoUiUpx4Gqf+/yEdlKDnqQuzOc3R32zNm6wBNvWoULd0TlkS1Z6WorWw+Ka7FbVcy7iq0rDSCb1lgP3ux2CmFrTQOztMjg2ddKK/RQ77F+QQEr2HLlkHbLIpESDy0eIihSinBAWrKwsZFaLDN+1eefIUQU36B6wJNf9bNEMBugWLPrWMVEx7SIcw2WTvfvVby1CD1821MC3h5R+zuqV6GFIZeWuApU2FDUUXEBHzmKAn5hjc5x+wYbrHnnEF6pJ8a+civA7xGejaZCAvszYOAfobd/7qX2IAw6PfPwos0rIbgPDBqpb34vXeCKIlMhIxidIvBcSMc3CueaGjKnHYSbc/I8JRXazDtN0sT8yK3L5WuPdstrhKurWLaDPkUqn+Qu4Te3vEHKc+Xn/pR3Dz/vf+i287epM+v145en1Bw/pA+eYo8vvLAE3SkF/2BjjEKuz974CJCU67yVevc5NnpgknI2Vx5QKeQxT/vilxYyyJ54LLaYDBKXG3OqGPRSDDAOjyw2wuPxYTCrmPMeKYuL86Y5I7YfpecWlUXciQkXBPSQo9P8FrXRW7lbHBwZOtv2QMYI7qzYTR7ygaxNNyx3SeCWd8rDY7gyB5cp3MJibRqalkBxHUJ9eAHYTqFbvq8A/nbGh43HiqG1xlbsmo4SpiOvVewpQgGG+A1vmnvQ2/L6he+QlBpNWiMdXTpqbcWW9NcYQQcRWQoIPH7HNojRtUTSPyqYlhWgipMgn6EhIcWnwSin0gMb/gOIOLht
Additional comments
Thank you in advance
The text was updated successfully, but these errors were encountered: