简体   繁体   中英

SublimeLinter 3 - How to ignore specific “not defined” warnings

I want to know if there is any way to ignore/exclude the "is not defined" warning on Sublime Linter 3, because I'm using it with Jasmine, and it does not identify the browser word, then it keeps saying it is not defined.

Is there any configuration parameter, like 'ignore': ['browser', 'by', 'element']

PS: I just need it to be disable in the matched cases above. Thank you!

As Sublime Linter was using jshint, the solution was add this line to the file:

/* globals element */
/* globals by */
/* globals browser */

And the warnings will never appear for this cases.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM