Eslint-plugin-vue: Object shorthand property makes `script-indent` rule show error.

Created on 26 Jan 2018  路  4Comments  路  Source: vuejs/eslint-plugin-vue

screenshot-2018-1-26 vue js eslint demo

Tell us about your environment

  • ESLint Version: v4.16.0
  • eslint-plugin-vue Version: v4.2.0
  • Node Version: v8.9.4

Please show your full configuration:


See on demo page.

What did you do? Please include the actual source code causing the issue.

<script>
import SomeComponent from './SomeComponent';

export default {
  name: 'App',
  components: {
    SomeComponent
  }
};
</script>

What did you expect to happen?

Should not see script-indent error when use object shorthand property.
It should preserves indent level.

What actually happened? Please include the actual, raw output from ESLint.

Expected indentation of 6 spaces but found 2 spaces. (vue/script-indent) 
bug duplicate

Most helpful comment

All 4 comments

Thank you for this issue.

However, I think this is a duplicate of #359, #352, #347, and #344.
PR #346 has fixed it. Please wait for the next release.

Oh! Thank you.

Hooray

Oh! Thank you so much. 馃槝

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lichnow picture lichnow  路  3Comments

casprwang picture casprwang  路  4Comments

Hyzual picture Hyzual  路  3Comments

rodneyrehm picture rodneyrehm  路  4Comments

apertureless picture apertureless  路  4Comments