Search code examples
jshintsbt-pluginplayframework-2.4

How to make JsHint sbt plugin more useful?


When I have jshint sbt plugin enable in my Play project, I get these annoying errors which are really not errors. How can I turn them off, or avoid them?

Thanks

enter image description here enter image description here


Solution

  • jshint is doing exactly what it is supposed to do. You can configure its errors with a standard .jshintrc file in the project root.

    The first error exists because it should be window.alert(s).