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
8.39.0
eslint-plugin-svelte
2.27.1
module.exports = { root: true, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier' ], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], ignorePatterns: ['*.cjs'], parserOptions: { sourceType: 'module', ecmaVersion: 2020, extraFileExtensions: ['.svelte'] }, env: { browser: true, es2017: true, node: true }, overrides: [ { files: ['*.svelte'], parser: 'svelte-eslint-parser', parserOptions: { parser: '@typescript-eslint/parser' } } ] };
npm create svelte@latest
src/routes/+page.svelte
<script lang="ts"> let x = new Date(); setTimeout(() => { x.setFullYear(2020); x = x; }, 1000); </script>
Expected no error because self-assignments are used in Svelte to trigger updates
ESLint emits this error when using the default config provided with npm create svelte@latest:
5:9 error 'x' is assigned to itself no-self-assign
https://github.com/probablykasper/eslint-svelte-self-assign-bug
No response
The text was updated successfully, but these errors were encountered:
no-self-assign
This issue was resolved in PR #455 but was rolled back in release #457 by the bot
Sorry, something went wrong.
thanks for letting me know.
Successfully merging a pull request may close this issue.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.39.0
What version of
eslint-plugin-svelte
are you using?2.27.1
What did you do?
Configuration
npm create svelte@latest
src/routes/+page.svelte
What did you expect to happen?
Expected no error because self-assignments are used in Svelte to trigger updates
What actually happened?
ESLint emits this error when using the default config provided with
npm create svelte@latest
:Link to GitHub Repo with Minimal Reproducible Example
https://github.com/probablykasper/eslint-svelte-self-assign-bug
Additional comments
No response
The text was updated successfully, but these errors were encountered: