-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
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
eslint --fix messing up file, adding duplicated content #180
Comments
Observing same, so far detected Also something is also breaking object constants, looking what's root |
Facing the same problem, I use the template code like: <script lang="ts">
let count = 0
const increment = () => {
count += 1
}
</script>
<button on:click={increment}>
count is {count}
</button> With <script lang="ts">
let count = 0
const increment = () => {
count += 1;
};
</script>
<button on:click={increment;<script lang="ts">
let count = 0
const increment = () => {
count += 1
}
</script>
<button on:click={increment}>
count is {count;}
</button> But after I add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eslint --fix
on the fileBefore:
After:
You can see here that before the closing script tag the whole fixed part of the code got inserted a second time, instead of replacing the existing code!
The text was updated successfully, but these errors were encountered: