-
Notifications
You must be signed in to change notification settings - Fork 20.5k
ESLint #3148
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
ESLint #3148
Conversation
|
By analyzing the blame information on this pull request, we identified @gibson042, @mgol and @Krinkle to be potential reviewers |
| @@ -1,4 +1,6 @@ | |||
| external | |||
| node_modules | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That file and .npmignore feels weird to me, will evaluate them in the next pull
| @@ -0,0 +1,4 @@ | |||
| { | |||
| "extends": "../../.eslintrc", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't want to inherit config from test folder
|
Would like to land this ASAP, since if other commits would be presented to the master it would be harder to keep this up to date. If there is no objections will land this tomorrow |
.eslintignore
Outdated
| @@ -1,4 +1,6 @@ | |||
| external | |||
| node_modules | |||
| dist | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want to lint dist/jquery.js, it did catch bugs in the compilation process in the past for me.
|
Will you squash it before landing? Sometimes landing many commits makes sense but the first one doesn't compile to me so it'd be bad to land it without squashing on |
src/.eslintrc
Outdated
| @@ -0,0 +1,20 @@ | |||
| { | |||
| "env": { | |||
| "browser": true | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be here for the same reason that we haven't specified "browser": true in .jshintrc for some time. We only assume the presence of the window global, the rest of the browser globals have to be taken from window. This is the main way in which we guarantee working correctly in configurations like Node+jsdom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to use window in globals instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, as it was in .jshintrc.
Not sure, would like to keep |
I'm mostly asking because of Git rebase. I sometimes use it to narrow down which commit introduced a particular regression, via the cycle of If it's hard to squash, maybe you could edit the first commit to disable running |
|
@markelog OK, I wrote some comments, the most important to me are those related to the browser env in It looks good overall, though, thanks for this work! 👏 |
Okay, will do. Will fix issues you pointed out and if no one has anything else, will land this tomorrow |
|
@markelog I commented about a few things in the first commit in the preset repo but nothing terribly important. |
98f75bb to
d2d8189
Compare
Use eslint pragmas, fix new errors, etc Closes jquerygh-3148
Checklist
Mark an
[x]for completed items, if you're not sure leave them unchecked and we can assist.Thanks! Bots and humans will be around shortly to check it out.