Skip to content

Instantly share code, notes, and snippets.

@ljepson

ljepson/.jscsrc

Created Apr 14, 2017
Embed
What would you like to do?
{
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces" : true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInFunction": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": "nested",
"disallowSpacesInsideObjectBrackets": "nested",
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"maximumLineLength": { "value": 100, "allowComments": true, "allowRegex": true },
"requireBlocksOnNewline": true,
"requireCapitalizedComments": { "allExcept": ["jshint", "exported", "globals"] },
"requireCapitalizedConstructors": true,
"requireCurlyBraces": true,
"requireKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"requireOperatorBeforeLineBreak": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "case", "return", "try", "typeof" ],
"requireSpaceAfterLineComment": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"requireSpacesInFunction": { "beforeOpeningCurlyBrace": true },
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
"safeContextKeyword": ["self"],
"validateIndentation": 4,
"validateLineBreaks": "LF",
"validateParameterSeparator": ", ",
"validateQuoteMarks": {"mark": "'", "escape": true }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.