Skip to content

Conversation

@markelog
Copy link
Member

@markelog markelog commented Jun 8, 2016

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.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @gibson042, @mgol and @Krinkle to be potential reviewers

@markelog markelog changed the title Eslint ESLint Jun 8, 2016
@@ -1,4 +1,6 @@
external
node_modules
Copy link
Member Author

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",
Copy link
Member Author

@markelog markelog Jun 8, 2016

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

@markelog
Copy link
Member Author

markelog commented Jun 9, 2016

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
Copy link
Member

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.

@mgol
Copy link
Member

mgol commented Jun 9, 2016

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

src/.eslintrc Outdated
@@ -0,0 +1,20 @@
{
"env": {
"browser": true
Copy link
Member

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.

Copy link
Member Author

@markelog markelog Jun 9, 2016

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?

Copy link
Member

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.

@markelog
Copy link
Member Author

markelog commented Jun 9, 2016

Will you squash it before landing?

Not sure, would like to keep Tests: and Build: commits separate, if it will be tricky, i wouldn't want to risk it

@mgol
Copy link
Member

mgol commented Jun 9, 2016

Will you squash it before landing?

Not sure, would like keep Tests: and Build: commits separate, if it will be tricky, i wouldn't want to risk it

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 npm it, testing the issue and git bisect good or git bisect bad and if a commit that doesn't compile is landed it makes it harder to bisect.

If it's hard to squash, maybe you could edit the first commit to disable running eslint on grunt or grunt test there (e.g. via commenting out its entry in various tasks) and restore at the end? That would make all commits compile at the cost of having 3 commits with temporarily disabled linting which doesn't sound like a big issue.

@mgol
Copy link
Member

mgol commented Jun 9, 2016

@markelog OK, I wrote some comments, the most important to me are those related to the browser env in .eslintrc and linting dist/jquery.js.

It looks good overall, though, thanks for this work! 👏

@markelog
Copy link
Member Author

markelog commented Jun 9, 2016

If it's hard to squash, maybe you could edit the first commit to disable running eslint on grunt or grunt test there (e.g. via commenting out its entry in various tasks) and restore at the end?

Okay, will do.

Will fix issues you pointed out and if no one has anything else, will land this tomorrow

@mgol
Copy link
Member

mgol commented Jun 9, 2016

@markelog I commented about a few things in the first commit in the preset repo but nothing terribly important.

@markelog markelog force-pushed the eslint branch 2 times, most recently from 98f75bb to d2d8189 Compare June 11, 2016 07:39
@markelog markelog merged commit 58c6ca9 into jquery:master Jun 11, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants