BenoitZugmeyer / eslint-plugin-html

An ESLint plugin to extract and lint scripts from HTML files.
ISC License
430 stars 51 forks source link

removing first line break inside <script> tag #76

Closed dperrymorrow closed 7 years ago

dperrymorrow commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

cool thanks for looking into this.