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
@const
{#if object} {@const { property1 } = object} {/if}
1º Problem - ESLint show the error: 'property1' is not defined (no-undef error).
no-undef
2º Problem - If the property was equal to name, ESLint show the error: Read-only global 'name' should not be modified (no-global-assign error)
name
no-global-assign
The text was updated successfully, but these errors were encountered:
I found the solution: update the eslint-plugin-svelte3 package, I was using version 3.4.0, and the update to 4.0.0 fixes the problem.
eslint-plugin-svelte3
3.4.0
4.0.0
Sorry, something went wrong.
No branches or pull requests
ESLint shows errors when destructing an object in a local variable
@const
, the code works well apart from those errors.Example:
{#if object}
{@const { property1 } = object}
{/if}
1º Problem - ESLint show the error:
'property1' is not defined (
no-undef
error).2º Problem - If the property was equal to
name
, ESLint show the error:Read-only global 'name' should not be modified (
no-global-assign
error)Images:
The text was updated successfully, but these errors were encountered: