BenoitZugmeyer / eslint-plugin-html

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

Unable to use with IntelliJ IDE #106

Closed Grawl closed 4 years ago

Grawl commented 5 years ago

There is ESLint support in IntelliJ IDE but I cannot configure it to highlight errors and warnings into files in twig extension.

In built-in ESLint support, there is "Extra ESLint options" field in "Languages & Frameworks › JavaScript › Code Quality Tools › ESLint". I think it's CLI extra args field. I add --ext='.twig' here but with no effect.

There's also idok/eslint-plugin for IntelliJ IDEs. There is "Extensions" field in "Other Settings › ESLint". I add .twig here but with no effect.

Related: https://github.com/idok/eslint-plugin/issues/49

BenoitZugmeyer commented 5 years ago

Try to run the same stuff without the eslint-plugin-html. Some editors are already doing this plugin job by removing the HTML parts from the files before feeding it to ESLint. Related to https://github.com/BenoitZugmeyer/eslint-plugin-html/issues/47#issuecomment-279156204 Let me know if it works.