facebook

jshint ignore files

  1. MyEclipse IDE
  2.  > 
  3. General Development

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #526026 Reply

    allanjackson
    Participant

    I’m using jshint in MyEclipse to validate my javascript files. I would like to disable this validation for various files in my projects (in jsp files or minified js library code, for example), but I can’t figure out a way of doing this.

    It looks like jshint supports using a .jshintignore file, but creating this file didn’t seem to have any effect inside MyEclipse. How can I get MyEclipse to start using the ignore file?

    #526107 Reply

    support-swapna
    Moderator

    Allan,

    We are looking into the .jshintignore issue. We will keep you posted about the fix.
    Alternatively, you can disable JSHint for a file by adding the below line to the top of the file.
    // jshint ignore: start

    Sorry for inconvenience caused. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

    #526126 Reply

    allanjackson
    Participant

    Thanks for the reply. I’ve used “//jshint ignore: start” on a couple of files, but long-term that’s not really a viable solution when I’m managing hundreds of jsp files that shouldn’t be scanned.

    It looks like MyEclipse is using Tern to run jshint? If that’s correct, it looks like the .jshintignore file wasn’t originally supported in Tern, but I think it’s been implemented in the latest version. There are several issues on github related to this.

    https://github.com/angelozerr/tern.java/issues/265
    https://github.com/angelozerr/tern.java/pull/377

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: jshint ignore files

You must be logged in to post in the forum log in