JsHint inside html script tag
So I have this problem working with PolymerJS.
By the nature of Polymer and the project itself I work with html files with inside script tag (that contains javascript )
The javascript 'fragment' gets recognized properly but the jshint feature is not enabled. I already configured it under preferences, enabled the use of the .jshintsrc file that is present inside the root folder of the project.
Is there any way to make this work ? if not I have to move away from WebStorm for this project, working with linting outside of the IDE is a nightmare
Thanks
Please sign in to leave a comment.
No, there is no way to make this work in WebStorm. JSHint CLI supports `
--extract`option that has to be used to lint javascript embedded in HTML, but there is no way to pass options to JSHint in WebStormOh this is really really bad!
Thank you for the answer!
I've created a feature request for a possibility to use JSHint in HTML - https://youtrack.jetbrains.com/issue/WEB-24489; please feel free to vote for it
Done, I will monitor it :)
Thanks