Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, jscs, `uglify-…
Browse files Browse the repository at this point in the history
…js`, `semver`, `concurrently`
  • Loading branch information
ljharb committed Sep 27, 2016
1 parent 5a8a84a commit 358ebcc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"operator-linebreak": [2, "after"],
"quote-props": [1, "as-needed", { "keywords": true }],
"sort-keys": [0],
"spaced-comment": [0],
"strict": [0]
}
Expand Down
9 changes: 3 additions & 6 deletions es5-sham.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@
// ... this will nerever possibly return null
// ... Opera Mini breaks here with infinite loops
Object.getPrototypeOf = function getPrototypeOf(object) {
/* eslint-disable no-proto */
// eslint-disable-next-line no-proto
var proto = object.__proto__;
/* eslint-enable no-proto */
if (proto || proto === null) {
return proto;
} else if (toStr(object.constructor) === '[object Function]') {
Expand Down Expand Up @@ -252,9 +251,8 @@

iframe.style.display = 'none';
parent.appendChild(iframe);
/* eslint-disable no-script-url */
// eslint-disable-next-line no-script-url
iframe.src = 'javascript:';
/* eslint-enable no-script-url */

empty = iframe.contentWindow.Object.prototype;
parent.removeChild(iframe);
Expand Down Expand Up @@ -319,9 +317,8 @@
// neither `__proto__`, but this manually setting `__proto__` will
// guarantee that `Object.getPrototypeOf` will work as expected with
// objects created using `Object.create`
/* eslint-disable no-proto */
// eslint-disable-next-line no-proto
object.__proto__ = prototype;
/* eslint-enable no-proto */
}

if (properties !== void 0) {
Expand Down
8 changes: 2 additions & 6 deletions es5-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1407,13 +1407,10 @@
// XXX global assignment won't work in embeddings that use
// an alternate object for the context.
/* global Date: true */
/* eslint-disable no-undef */
var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime());
/* eslint-disable no-implicit-globals */
// eslint-disable-next-line no-implicit-globals, no-global-assign
Date = (function (NativeDate) {
/* eslint-enable no-implicit-globals */
/* eslint-enable no-undef */
// Date.length === 7
var DateShim = function Date(Y, M, D, h, m, s, ms) {
var length = arguments.length;
Expand Down Expand Up @@ -1973,9 +1970,8 @@
}, StringPrototype.lastIndexOf.length !== 1);

// ES-5 15.1.2.2
/* eslint-disable radix */
// eslint-disable-next-line radix
if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
/* eslint-enable radix */
/* global parseInt: true */
parseInt = (function (origParseInt) {
var hexRegex = /^[\-+]?0[xX]/;
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"jscs": "jscs tests/helpers/*.js tests/spec/*.js es5-shim.js es5-sham.js"
},
"devDependencies": {
"eslint": "^3.0.0",
"@ljharb/eslint-config": "^6.0.0",
"eslint": "^3.6.1",
"@ljharb/eslint-config": "^8.0.0",
"jasmine-node": "^1.14.5",
"jscs": "^3.0.6",
"uglify-js": "^2.7.0",
"jscs": "^3.0.7",
"uglify-js": "^2.7.3",
"replace": "^0.3.0",
"semver": "^5.2.0",
"concurrently": "^2.1.0"
"semver": "^5.3.0",
"concurrently": "^3.0.0"
},
"engines": {
"node": ">=0.4.0"
Expand Down

0 comments on commit 358ebcc

Please sign in to comment.