We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@typescript-eslint/no-unsafe-argument
no-unsafe-return
<!-- asdf.svelte --> <script lang="ts"> export let onChange: (value: any) => void </script>
<!-- main.svelte --> <script lang="ts" context="module"> declare const value: any </script> <script lang="ts"> import Asdf from './asdf.svelte' let foo: unknown foo = value // no errors </script> <!-- Unsafe return of an `any` typed value. (@typescript-eslint/no-unsafe-return) Unsafe assignment of an `any` value. (@typescript-eslint/no-unsafe-assignment) --> <Asdf onChange={(value) => (foo = value)} />
since it's valid to assign any to unknown, this should not be an error. typescript-eslint playground
any
unknown
The text was updated successfully, but these errors were encountered:
this issue doesn't occur in eslint-plugin-svelte which seems to be more actively maintained
eslint-plugin-svelte
Sorry, something went wrong.
No branches or pull requests
since it's valid to assign
any
tounknown
, this should not be an error. typescript-eslint playgroundThe text was updated successfully, but these errors were encountered: