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

1
4 comments

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 WebStorm

1
Avatar
Permanently deleted user

Oh this is really really bad!

Thank you for the answer!

0

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

0
Avatar
Permanently deleted user

Done, I will monitor it :)

 

Thanks

0

Please sign in to leave a comment.