Skip to content

Commit

Permalink
[Dev Deps] update tape, jscs, eslint, @ljharb/eslint-config, …
Browse files Browse the repository at this point in the history
…`nsp`
  • Loading branch information
ljharb committed Jul 5, 2016
1 parent d5794fa commit 06336cc
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 13 deletions.
62 changes: 57 additions & 5 deletions .jscs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@

"disallowIdentifierNames": [],

"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireCurlyBraces": {
"allExcept": [],
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
},

"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],

"disallowSpaceAfterKeywords": [],

"disallowSpaceBeforeComma": true,
"disallowSpaceAfterComma": false,
"disallowSpaceBeforeSemicolon": true,

"disallowNodeTypes": [
Expand All @@ -27,7 +31,7 @@
"WithStatement"
],

"requireObjectKeysOnNewLine": true,
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },

"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
Expand All @@ -41,7 +45,7 @@

"disallowSpacesInsideArrayBrackets": true,

"disallowQuotedKeysInObjects": "allButReserved",
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },

"disallowSpaceAfterObjectKeys": true,

Expand Down Expand Up @@ -76,7 +80,7 @@

"disallowMultipleLineStrings": true,

"requireDotNotation": true,
"requireDotNotation": { "allExcept": ["keywords"] },

"requireParenthesesAroundIIFE": true,

Expand Down Expand Up @@ -119,6 +123,54 @@

"disallowArrowFunctions": true,

"validateOrderInObjectKeys": "asc-insensitive"
"disallowMultiLineTernary": true,

"validateOrderInObjectKeys": "asc-insensitive",

"disallowIdenticalDestructuringNames": true,

"disallowNestedTernaries": { "maxLevel": 1 },

"requireSpaceAfterComma": { "allExcept": ["trailing"] },
"requireAlignedMultilineParams": false,

"requireSpacesInGenerator": {
"afterStar": true
},

"disallowSpacesInGenerator": {
"beforeStar": true
},

"disallowVar": false,

"requireArrayDestructuring": false,

"requireEnhancedObjectLiterals": false,

"requireObjectDestructuring": false,

"requireEarlyReturn": false,

"requireCapitalizedConstructorsNew": {
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
},

"requireImportAlphabetized": false,

"requireSpaceBeforeObjectValues": true,
"requireSpaceBeforeDestructuredValues": true,

"disallowSpacesInsideTemplateStringPlaceholders": true,

"disallowArrayDestructuringReturn": false,

"requireNewlineBeforeSingleStatementsInIf": false,

"disallowUnusedVariables": true,

"requireSpacesInsideImportedObjectBraces": true,

"requireUseStrict": true
}

6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ var makeGeneratorFunction = function () {
return Function('return function* () { var x = yield; return x || 42; }')();
};
var makeConciseGeneratorMethod = function () {
return Function('return { * gen( ){ } }.gen;')();
return Function('return { * gen( ){ } }.gen;')();
};
var generatorFunc;
try {
generatorFunc = makeGeneratorFunction();
if (generatorFunc) {
generatorFunc.concise = makeConciseGeneratorMethod();
}
} catch (e) {/**/}
} catch (e) {
/**/
}

module.exports = generatorFunc;
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"jscs": "jscs test/*.js *.js",
"eslint": "eslint test/*.js *.js",
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
"security": "nsp package"
"security": "nsp check"
},
"repository": {
"type": "git",
Expand All @@ -33,13 +33,13 @@
],
"dependencies": {},
"devDependencies": {
"tape": "^4.2.0",
"tape": "^4.6.0",
"covert": "^1.1.0",
"jscs": "^2.1.1",
"eslint": "^1.5.1",
"@ljharb/eslint-config": "^1.2.0",
"jscs": "^3.0.6",
"eslint": "^3.0.0",
"@ljharb/eslint-config": "^6.0.0",
"editorconfig-tools": "^0.1.1",
"nsp": "^1.1.0"
"nsp": "^2.5.0"
},
"testling": {
"files": "test/index.js",
Expand Down

0 comments on commit 06336cc

Please sign in to comment.