BenoitZugmeyer / eslint-plugin-html

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

Unexpected Token < in .vue files when <script> tag is present #40

Closed codeofsumit closed 7 years ago

codeofsumit commented 7 years ago

as issued here, when I lint a vue single-file-component this one:

App.vue

<template>
  <div class="app" id="app"></div>
</template>

<script>
  import store from '../store';
  import router from '../router';

  export default {
    store,
    router,
  };
</script>

I get error Parsing error: Unexpected token < on line 1. That is always the case as soon as I add a script tag to the file.

Is there anything I did wrong (config or something) or is this a bug?

codeofsumit commented 7 years ago

nevermind, my mistake!

(I thought the Atom plugin will do everything for me but I forgot to manually add this plugin to the .eslintrc config.