You can either declare those variables in your config in `globals` section, or 
you can put inline comments /* globals */ in the files that uses them.

 

Thanks,

 

                                Ilya Volodin

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
rraallvv
Sent: Thursday, June 9, 2016 11:30 AM
To: ESLint <[email protected]>
Subject: [ESLint] Requiring script for browser project

 

Hello community,

 

I just wanted to ask how can one tell ESLint that a variable that is not 
defined in  a script is defined somewhere else? I’m asking because I have a 
couple of scripts that are added to a web page in a specific order, so that the 
variable in question is already defined when the script that ESLint is 
complaining about is executed. 

 

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]> .
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to