Skip to content

Object shorthand property makes script-indent rule show error. #363

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

Closed
gluons opened this issue Jan 26, 2018 · 4 comments
Closed

Object shorthand property makes script-indent rule show error. #363

gluons opened this issue Jan 26, 2018 · 4 comments

Comments

@gluons
Copy link

gluons commented Jan 26, 2018

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) 
@gluons gluons changed the title Object shorthand makes script-indent rule show error. Object shorthand property makes script-indent rule show error. Jan 26, 2018
@mysticatea
Copy link
Member

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.

@gluons
Copy link
Author

gluons commented Jan 26, 2018

Oh! Thank you.

Hooray

@michalsnik
Copy link
Member

https://github.com/vuejs/eslint-plugin-vue/releases/tag/v4.2.1

@gluons
Copy link
Author

gluons commented Jan 28, 2018

Oh! Thank you so much. 😘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants