Description
The version of ESLint you are using: v4.3.0
The version of eslint-plugin-vue you are using: 3.8.0
The problem you want to solve: Javascript in a vue component expects an initial indentation level of 0 despite being wrapped in <script></script>
. The following currently reports an error:
<script>
export default {
};
</script>
Your take on the correct solution to problem: When modifying a vue component, the linter should optionally allow for an initial indentation level of 1 when wrapped in <script></script>
.
The eslint-plugin-html plugin solves the indentation level issue for html files, and works nicely with eslint to only lint the javascript portion of vue components. Ideally eslint-plugin-vue could work in a similar way while also linting the template portion of the component (as it currently does).
Thanks!