Closed
Description
Tell us about your environment
- ESLint version: v6.7.1
- eslint-plugin-vue version: v6.0.1
- Node version: v12.13.0
Please show your full configuration:
{
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"plugins": [
"vue"
]
}
What did you do?
<template>
<div>
<h1>Hello</h1>
</div>
</template>
<script>
export default {
name: 'Test',
props: {
foo: "",
},
};
</script>
Running eslint test.vue
gives me the following:
And then after running eslint --fix test.vue
What did you expect to happen?
Not sure what I expected, but did not expect it to just replace ""
with nothing, leaving the JS invalid.
What actually happened?
{
props: {
foo: "",
}
}
was turned into
{
props: {
foo: ,
}
}