user267817
user267817

Reputation:

Disable javascript linting for particular sources in Play2

I'm trying to port my web application to Play, but some of the 3rd party JavaScript files (I put them in app/assets) can't pass the linting without significant changes.

How do I either disable the lint for some files or disable it completely?

Upvotes: 2

Views: 757

Answers (2)

SerhatCan
SerhatCan

Reputation: 590

If you do not want to change app/assets folder structure, you can comment out

addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")

this line in plugins.sbt file

Upvotes: 3

Andrew E
Andrew E

Reputation: 8337

If you put those files under ''public'' instead of app/assets/javascripts then they won't be checked. It's a quick and dirty solution but works well.

Upvotes: 4

Related Questions