idok / eslint-plugin

ESLint plugin for intellij
http://plugins.jetbrains.com/plugin/7494
MIT License
151 stars 18 forks source link

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

Open te1 opened 8 years ago

te1 commented 8 years ago

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

hogart commented 8 years ago

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).

chrisblossom commented 7 years ago

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

mattdell commented 7 years ago

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?

SergioCrisostomo commented 6 years ago

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