Skip to content
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

removing first line break inside <script> tag #76

Closed
dperrymorrow opened this issue Aug 9, 2017 · 2 comments
Closed

removing first line break inside <script> tag #76

dperrymorrow opened this issue Aug 9, 2017 · 2 comments

Comments

@dperrymorrow
Copy link

dperrymorrow commented Aug 9, 2017

when using with prettier, in .vue fiels the first line break is being removed from the script tag

<script>
import moment from "moment-timezone";
import AssetBrowser from "./AssetBrowser.vue";

export default {
  name: "OfferSideBar",
  props: { offer: Object },
...

becomes:

<script>import moment from "moment-timezone";
import AssetBrowser from "./AssetBrowser.vue";
...

this is inside of Atom with the following settings...

{
  "root": true,
  "parserOptions": {
    "ecmaVersion": 8
  },
  "plugins": [
    "prettier",
    "unicorn",
    "promise",
    "html"
  ],
...
@BenoitZugmeyer
Copy link
Owner

That's a good point. I will make a workaround for this issue. But for your information, it is advised to use the vue plugin for linting vue files.

@dperrymorrow
Copy link
Author

cool thanks for looking into this.

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

No branches or pull requests

2 participants