Open marekdedic opened 1 year ago
v8.44.0
eslint-plugin-svelte
2.32.2
<script> type KeyType = $$Generic<number | string> export let selected: KeyType | null </script>
No error
4:24 error 'any' overrides all other types in this union type @typescript-eslint/no-redundant-type-constituents
-
No response
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
v8.44.0
What version of
eslint-plugin-svelte
are you using?2.32.2
What did you do?
Configuration
```json { "rules": { "@typescript-eslint/no-redundant-type-constituents": "error" } } ```What did you expect to happen?
No error
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
-
Additional comments
No response