Skip to content

Instantly share code, notes, and snippets.

@Donmclean
Created May 29, 2016 18:46
Show Gist options
  • Save Donmclean/b020435ab91744dea03e6644fee74535 to your computer and use it in GitHub Desktop.
Save Donmclean/b020435ab91744dea03e6644fee74535 to your computer and use it in GitHub Desktop.
JSCS config JSON for idiomaticJS.
{
"preset": "jquery",
"requireEarlyReturn": true,
"requireSpacesInsideParentheses": {
"all": true,
"ignoreParenthesizedExpression": true,
"except": [ "{", "}", "[", "]", "function", "\"" ]
},
"disallowSpacesInsideParentheses": {
"only": [ "{", "}", "[", "]", "function" ]
},
"disallowSpacesInCallExpression": true,
"requirePaddingNewLinesBeforeLineComments": null,
"requireSpaceAfterLineComment": {
"allExcept": ["#", "="]
},
"disallowMultipleLineBreaks": null,
"requireCapitalizedComments": null,
"validateIndentation": null,
"validateCommentPosition": { "position": "above" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment