Skip to content

incosistent with prettier cli and introducing syntaxt error. #200

@rnmhdn

Description

@rnmhdn

I have the following file and it's called test.vue

<template>
  <div>
    <span>
      {{ video.selected ? "This video is included in the charts" : "This video is not included in the charts" }}
    </span>
  </div>
</template>

I run prettier test.vue and I get:

<template>
  <div>
    <span>
      {{
        video.selected
          ? "This video is included in the charts"
          : "This video is not included in the charts"
      }}
    </span>
  </div>
</template>

But I do :Prettier in vim and I get:

<template>
  <div>
    <span>
      {{ video.selected ? "This video is included in the charts" : "This video is not
      included in the charts" }}
    </span>
  </div>
</template>

which is actually syntax error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions