Skip to content

Instantly share code, notes, and snippets.

@rtmalone
Created July 16, 2015 05:28
Show Gist options
  • Select an option

  • Save rtmalone/963d1757cea6d3483800 to your computer and use it in GitHub Desktop.

Select an option

Save rtmalone/963d1757cea6d3483800 to your computer and use it in GitHub Desktop.
IH JSCS
{
"disallowEmptyBlocks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowOperatorBeforeLineBreak": ["."],
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [ ",", ":" ],
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"maximumLineLength": {
"value": 80,
"tabSize": 2,
"allowUrlComments": true
},
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": true,
"requireDollarBeforejQueryAssignment": true,
"requireLineBreakAfterVariableAssignment": true,
"requireMultipleVarDecl": true,
"requireOperatorBeforeLineBreak": true,
"requirePaddingNewLineAfterVariableDeclaration": true,
"requirePaddingNewlinesBeforeKeywords": true,
"requirePaddingNewLinesBeforeLineComments": { "allExcept": "firstAfterCurly" },
"requireParenthesesAroundIIFE": true,
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceAfterKeywords": true,
"requireSpaceAfterLineComment": true,
"requireSpaceBeforeBinaryOperators": [
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
"&=", "|=", "^=", "+=", "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
"|", "^", "&&", "||", "===", "==", ">=",
"<=", "<", ">", "!=", "!=="
],
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"validateIndentation": "\t",
"validateParameterSeparator": ", ",
"validateQuoteMarks": { "mark": "'", "escape": true }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment