Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Jul 11, 2016

Summary

The PR makes it possible to use the new ESLint 3.x that's incompatible with Node.js older than 4.x but at the same time allows to build jQuery in an older Node. The tasks using problematic modules (like ESLint & jsdom) are skipped there.

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.

Fixes gh-3222

cc @markelog

@mention-bot
Copy link

@mgol, thanks for your PR! By analyzing the annotation information on this pull request, we identified @markelog, @sindresorhus and @jha-naman to be potential reviewers


var fs = require( "fs" ),
gzip = require( "gzip-js" ),
oldNode = /^v0\./.test( process.version );
Copy link
Member

@markelog markelog Jul 11, 2016

Choose a reason for hiding this comment

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

maybe you could encapsulate it in runIfNewNode method?

Copy link
Member Author

Choose a reason for hiding this comment

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

I need this variable outside of this function as well (see the load-grunt-tasks line).

@mgol mgol force-pushed the skip-eslint-on-old-node branch from 517651f to 067122d Compare July 11, 2016 18:03
@mgol
Copy link
Member Author

mgol commented Jul 13, 2016

This should be good to go. Any objections to land?

mgol added 2 commits July 13, 2016 10:54
ESLint 3.0 drops support for Node.js older than 4.x. To be able to update
to this version and yet not block our contributors from building jQuery
on older Node.js (at least until it's supported by upstream) this commit
makes ESLint skipped on older Node; a proper message is displayed then.

Fixes jquerygh-3222
ESLint is now skipped in Node older than 4.x so we're safe.

Refs jquerygh-3222
@mgol mgol force-pushed the skip-eslint-on-old-node branch from 067122d to 96966c0 Compare July 13, 2016 08:54
@timmywil
Copy link
Member

LGTM

@timmywil timmywil added this to the 3.1.1 milestone Jul 13, 2016
@mgol mgol merged commit 96966c0 into jquery:master Jul 14, 2016
@mgol mgol deleted the skip-eslint-on-old-node branch July 14, 2016 08:07
@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.

Skip running ESLint on Node 0.x (was: Do not build jquery on 0.x node versions)

6 participants