This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
0 Replies Last post: Jul 10, 2013 8:01 PM by Paul Rose  
Paul Rose Newbie 33 posts since
Dec 14, 2010
Currently Being Moderated

Jul 10, 2013 8:01 PM

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:

 

ko.computed(...);

 

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?

 

Thanks!

More Like This

  • Retrieving data ...