Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Nov 2, 2016

Fixes #236

It makes sense to review it commit by commit, the changes make sense to land separately.

mgol added 3 commits November 3, 2016 00:09
We can't format package.json as all other JSON/JS files since it prevents us
from using npm commands updating package.json - they don't preserve the
formatting. jQuery Core has switched long time ago.

This commit doesn't introduce any changes to package.json except reformatting
it to follow the format produced by npm.
The previous way required listing all the loaded packages individually
which was sub-optimal. jQuery Core also uses this package.
@mention-bot
Copy link

@mgol, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dmethvin, @markelog and @gibson042 to be potential reviewers.

@mgol mgol mentioned this pull request Nov 2, 2016
@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.5% when pulling 9ae6f9f on mgol:eslint into 5acafbc on jquery:master.

@mgol
Copy link
Member Author

mgol commented Nov 14, 2016

ping @dmethvin. :) @timmywil gave an LGTM.

@@ -1,80 +1,81 @@
{
"name": "jquery-migrate",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably should change

[package.json]
then

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It already says "2 spaces" so this file was incorrectly formatted...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O, can't really see tabs vs spaces thingy in github UI

Gruntfile.js Outdated
grunt.registerTask( "test", [ "qunit" ] );

grunt.registerTask( "lint", [ "jshint", "jscs" ] );
grunt.registerTask( "lint", [ "eslint:dev", "eslint:dist" ] );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why two tasks? Why not just eslint?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one task with 2 targets. Not specifying the targets manually would first invoke the dist one and then quit; that makes it way harder to know what to fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not specifying the targets manually would first invoke the dist one and then quit

How this is an issue?

that makes it way harder to know what to fix

Didn't it prints path to problematic file?

@@ -1,11 +1,14 @@
/* exported migrateWarn, migrateWarnFunc, migrateWarnProp */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this means?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgol
Copy link
Member Author

mgol commented Nov 14, 2016 via email

@markelog
Copy link
Member

@mgol Make sense

@markelog
Copy link
Member

Don't be so defensive btw :)

@mgol
Copy link
Member Author

mgol commented Nov 14, 2016

I wasn't trying to be defensive, sorry if it sounded that way. :)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.5% when pulling 1cb2093 on mgol:eslint into 5acafbc on jquery:master.

@mgol mgol merged commit 1cb2093 into jquery:master Nov 16, 2016
@mgol mgol deleted the eslint branch November 16, 2016 11:30
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

Successfully merging this pull request may close these issues.

6 participants