Recognizing knockout in js inspections

I noticed that knockout is not one of the environment options in the JSHint preferences.

I get a bunch of yellow warnings on these lines of code:


I can think of a couple of ways to solve this:

1) Has someone created a knockout environment for JSHint that I can include?

2) Is there a way for me to add a new environment to the list so that I can create my own knockout environment?

3) Is there a syntax that I can use in a comment that will suppress that error? (That is, I already have /*global ko */, can I just add something to that?)

4) Is there a way in RubyMine to set a preference somewhere to suppress only the error for the exact phrase "ko.computed", but leave all other similar warnings?


Please sign in to leave a comment.