I'd like to know if, when we pass multiple files to the ESLint CLI, are 
those files each linted in the same, shared scope or does each file receive 
its own scope? For example, suppose I run the following command (I've 
omitted the --rule parameters for brevity): 

*eslint [some rules] file1.js file2.js*


Suppose the content of "file1.js" is: 

var a = 35;


And the content of "file2.js" is: 

var x = a + 10;


Will ESLint warn that "a" is not defined in "file2.js", or is it going to 
recognize that "a" was defined in an earlier file it checked? Thanks.

-- 
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