forked from gulpjs/gulp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring JSCS to Gulp. Fixes gulpjs#904
- Loading branch information
1 parent
84df40b
commit a54996c
Showing
10 changed files
with
159 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"disallowKeywords": ["with"], | ||
"disallowKeywordsOnNewLine": ["else"], | ||
"disallowMixedSpacesAndTabs": true, | ||
"disallowMultipleVarDecl": "exceptUndefined", | ||
"disallowNewlineBeforeBlockStatements": true, | ||
"disallowQuotedKeysInObjects": true, | ||
"disallowSpaceAfterObjectKeys": true, | ||
"disallowSpaceAfterPrefixUnaryOperators": true, | ||
"disallowSpacesInFunction": { | ||
"beforeOpeningRoundBrace": true | ||
}, | ||
"disallowSpacesInsideParentheses": true, | ||
"disallowTrailingWhitespace": true, | ||
"maximumLineLength": null, | ||
"requireCamelCaseOrUpperCaseIdentifiers": true, | ||
"requireCapitalizedComments": true, | ||
"requireCapitalizedConstructors": true, | ||
"requireCurlyBraces": true, | ||
"requireSpaceAfterKeywords": [ | ||
"if", | ||
"else", | ||
"for", | ||
"while", | ||
"do", | ||
"switch", | ||
"case", | ||
"return", | ||
"try", | ||
"catch", | ||
"typeof" | ||
], | ||
"requireSpaceAfterLineComment": true, | ||
"requireSpaceAfterBinaryOperators": true, | ||
"requireSpaceBeforeBinaryOperators": true, | ||
"requireSpaceBeforeBlockStatements": true, | ||
"requireSpaceBeforeObjectValues": true, | ||
"requireSpacesInFunction": { | ||
"beforeOpeningCurlyBrace": true | ||
}, | ||
"requireTrailingComma": { | ||
"ignoreSingleLine": true | ||
}, | ||
"requireBlocksOnNewline": true, | ||
"validateIndentation": 2, | ||
"validateLineBreaks": "LF", | ||
"validateQuoteMarks": "'" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict'; | ||
|
||
module.exports = function (tasks) { | ||
module.exports = function(tasks) { | ||
return Object.keys(tasks) | ||
.reduce(function (prev, task) { | ||
.reduce(function(prev, task) { | ||
prev.nodes.push({ | ||
label: task, | ||
nodes: tasks[task].dep | ||
nodes: tasks[task].dep, | ||
}); | ||
return prev; | ||
}, { | ||
nodes: [] | ||
nodes: [], | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.