Skip to content

Commit

Permalink
[Dev Deps] update tape, jscs, make-arrow-function, semver, `e…
Browse files Browse the repository at this point in the history
…slint`, `@ljharb/eslint-config`, `nsp`
  • Loading branch information
ljharb committed Sep 27, 2015
1 parent 41489a0 commit 2829e84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

"rules": {
"complexity": [1, 10],
"eqeqeq": [2, "allow-null"],
"id-length": [2, { "min": 1, "max": 23 }],
"max-statements": [1, 10],
"no-extra-parens": [1],
Expand All @@ -13,6 +14,6 @@
"number": false,
"string": true
}],
"no-new-func": [1],
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"]
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"is-string": "^1.0.4"
},
"devDependencies": {
"tape": "^4.1.0",
"tape": "^4.2.0",
"covert": "^1.1.0",
"jscs": "^2.1.0",
"jscs": "^2.1.1",
"foreach": "^2.0.5",
"make-arrow-function": "^1.0.0",
"make-arrow-function": "^1.1.0",
"make-generator-function": "^1.1.0",
"semver": "^5.0.1",
"eslint": "^1.1.0",
"@ljharb/eslint-config": "^1.0.4",
"nsp": "^1.0.3"
"semver": "^5.0.3",
"eslint": "^1.5.1",
"@ljharb/eslint-config": "^1.2.0",
"nsp": "^1.1.0"
},
"testling": {
"files": "test.js",
Expand Down
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var hasArrowFunctionSupport = arrowFunctions.length > 0;

var forEach = require('foreach');
var copyFunction = function (fn) {
/* eslint-disable no-new-func */
return Function('return ' + String(fn))();
};

Expand Down Expand Up @@ -160,6 +161,7 @@ test('functions', function (t) {
t.notOk(isEqual(emptyFnOneArg, fnNoSpace), 'functions with same name/body, diff arity, are not equal');

t.test('generators', { skip: !hasGeneratorSupport }, function (st) {
/* eslint-disable no-new-func */
var genFnStar = Function('return function* () {};')();
var genFnSpaceStar = Function('return function *() {};')();
var genNoSpaces = Function('return function*(){};')();
Expand Down

0 comments on commit 2829e84

Please sign in to comment.