eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

Support JavaScript in other file types (.html and .vue)

Open te1 opened this issue 8 years ago • 4 comments

Would it be possible to add support to run ESLint on JavaScript in other file types like .html and more importantly .vue? Both allow use of JavaScript in <script> tags.

There are already ESLint plugins to enable this functionality but it seems there is no support for ESLint plugins (see #46).

References: https://github.com/BenoitZugmeyer/eslint-plugin-html https://github.com/Twiknight/eslint-plugin-vue http://vuejs.github.io/vue-loader/start/spec.html

te1 avatar Apr 30 '16 15:04 te1

In theory, this should work out of the box by providing "Extra eslint options" in settings with --ext=.js,.vue.

Unfortunately though, it doesn't, or at least I can't figure out a way to write those options (above doesn't seem to do anything).

hogart avatar Jun 12 '16 16:06 hogart

I am seeing a similar issue with .ts and .tsx files. (ESLint works as expected with Typescript when only using types)

chrisblossom avatar Aug 23 '16 15:08 chrisblossom

Similarly I need this as an option for .ts and .tsx.

I see this has been open for over a year. Any hope of adding this?

mattdell avatar May 30 '17 10:05 mattdell

related: https://github.com/idok/eslint-plugin/issues/57

SergioCrisostomo avatar Nov 16 '17 16:11 SergioCrisostomo