svelte/prefer-style-directive
mangles code when attempting to fix more than one instance
#651
Closed
2 tasks done
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.55.0
What version of
eslint-plugin-svelte
are you using?2.35.1
What did you do?
Configuration
output-2.mp4
Repro
npm create svelte@latest my-app
svelte/prefer-style-directive
pnpm eslint --fix file.svelte
fix this svelte/prefer-style-directive problem
a. EXPECTED: Observe that file can be auto-fixed in the IDE by selecting
fix all svelte/prefer-style-directive problems
b. ACTUAL: Observe that file can NOT be auto-fixed in the IDE by selecting
fix all svelte/prefer-style-directive problems
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/thenbe/repro-svelte-eslint-style
Additional comments
Issue happens in both vscode and neovim.
The text was updated successfully, but these errors were encountered: