Closed mcandre closed 9 years ago
In my front-end JavaScript code, I often use $( ...) to perform jQuery selections. JSLint mistakenly thinks that $ is undefined, when in reality, it is defined by another JavaScript file loaded before mine.
$( ...)
$
I have { "browser": true } in my ~/.jslintrc.
{ "browser": true }
~/.jslintrc
Ah, { "predef": [ "$" ] } fixes this.
{ "predef": [ "$" ] }
In my front-end JavaScript code, I often use
$( ...)
to perform jQuery selections. JSLint mistakenly thinks that$
is undefined, when in reality, it is defined by another JavaScript file loaded before mine.I have
{ "browser": true }
in my~/.jslintrc
.