Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File specific options leak into the next file when checking multiple files #141

Open
tensor5 opened this issue Oct 19, 2015 · 1 comment

Comments

@tensor5
Copy link

tensor5 commented Oct 19, 2015

Suppose you have two files in your working directory:

test1.js:

/*jslint browser, this */

document.createElement("div");
console.log(this);

and test2.js:

document.createElement("div");
console.log(this);

jslint --edition=es6 test1.js test2.js outputs:


test1.js is OK.

test2.js is OK.

while reverting the order jslint --edition=es6 test2.js test1.js:


test2.js
 #1 Undeclared 'document'.
    document.createElement("div"); // Line 0, Pos 0
 #2 Unexpected 'this'.
    console.log(this); // Line 1, Pos 12

test1.js is OK.
@smikes
Copy link
Collaborator

smikes commented Oct 20, 2015

Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants