Created
August 11, 2015 18:45
-
-
Save ismnoiet/671ea7fc4d9243d8b0c1 to your computer and use it in GitHub Desktop.
js code style for jscs it should be installed in each project separaratelly in order to work
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
Show hidden characters
{ | |
"excludeFiles": ["node_modules/**", "bower_components/**"], | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], | |
"requireOperatorBeforeLineBreak": true, | |
"requireCamelCaseOrUpperCaseIdentifiers": true, | |
"maximumLineLength": { | |
"value": 100, | |
"allowComments": true, | |
"allowRegex": true | |
}, | |
"validateIndentation": 4, | |
"validateQuoteMarks": "'", | |
"disallowMultipleLineStrings": true, | |
"disallowMixedSpacesAndTabs": true, | |
"disallowTrailingWhitespace": true, | |
"disallowSpaceAfterPrefixUnaryOperators": true, | |
"disallowMultipleVarDecl": null, | |
"requireSpaceAfterKeywords": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"switch", | |
"return", | |
"try", | |
"catch" | |
], | |
"requireSpaceBeforeBinaryOperators": [ | |
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", | |
"&=", "|=", "^=", "+=", | |
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&", | |
"|", "^", "&&", "||", "===", "==", ">=", | |
"<=", "<", ">", "!=", "!==" | |
], | |
"requireSpaceAfterBinaryOperators": true, | |
"requireSpacesInConditionalExpression": true, | |
"requireSpaceBeforeBlockStatements": true, | |
"requireLineFeedAtFileEnd": true, | |
"disallowSpacesInsideObjectBrackets": "all", | |
"disallowSpacesInsideArrayBrackets": "all", | |
"disallowSpacesInsideParentheses": true, | |
"validateJSDoc": { | |
"checkParamNames": true, | |
"requireParamTypes": true | |
}, | |
"disallowMultipleLineBreaks": true, | |
"disallowCommaBeforeLineBreak": null, | |
"disallowDanglingUnderscores": null, | |
"disallowEmptyBlocks": null, | |
"disallowMultipleLineStrings": null, | |
"disallowTrailingComma": null, | |
"requireCommaBeforeLineBreak": null, | |
"requireDotNotation": null, | |
"requireMultipleVarDecl": null, | |
"requireParenthesesAroundIIFE": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment