Skip to content

Instantly share code, notes, and snippets.

@LopatkinEvgeniy
Last active November 16, 2015 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LopatkinEvgeniy/55bc0534972117af97d5 to your computer and use it in GitHub Desktop.
Save LopatkinEvgeniy/55bc0534972117af97d5 to your computer and use it in GitHub Desktop.
jscs
// jshint eqeqeq: false, -W041
// node-jscs v2.1.0
{
"disallowFunctionDeclarations": true,
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": "exceptUndefined",
"disallowNamedUnassignedFunctions": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["."],
"disallowPaddingNewlinesBeforeKeywords": ["catch", "else"],
"disallowPaddingNewlinesInBlocks": true,
"disallowQuotedKeysInObjects": true,
"disallowEmptyBlocks": {
"allExcept": ["comments"]
},
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforeComma": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBeforeSemicolon": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"maximumLineLength": {
"value": 120,
"allowUrlComments": true,
"allowRegex": true
},
"maximumNumberOfLines": 9001,
"requireAnonymousFunctions": true,
"requireBlocksOnNewline": {
"includeComments": true,
"minLines": 1
},
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": true,
"requireDollarBeforejQueryAssignment": true,
"requireDotNotation": "except_snake_case",
"requireKeywordsOnNewLine": ["else", "while", "do"],
"requireLineBreakAfterVariableAssignment": true,
// "requireObjectKeysOnNewLine": true,
"requireOperatorBeforeLineBreak": true,
"requirePaddingNewLineAfterVariableDeclaration": true,
"requirePaddingNewLinesAfterBlocks": true,
"requirePaddingNewLinesAfterUseStrict": true,
"requirePaddingNewLinesBeforeExport": true,
"requirePaddingNewlinesBeforeKeywords": [
"do",
"for",
"if",
"switch",
"try",
"while",
"with",
"return",
"function"
],
"requirePaddingNewLinesBeforeLineComments": {
"allExcept": "firstAfterCurly"
},
"requireParenthesesAroundIIFE": true,
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterLineComment": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"requireSpacesInsideObjectBrackets": "all",
"requireVarDeclFirst": true,
"safeContextKeyword": ["self"],
"validateIndentation": 4,
"validateLineBreaks": "LF",
// "validateNewlineAfterArrayElements": true, // define([]) bug
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment