Skip to content

Instantly share code, notes, and snippets.

@tigerclaw-az
Created June 11, 2015 21:04
Show Gist options
  • Save tigerclaw-az/bc4c4f718a382b48d4d4 to your computer and use it in GitHub Desktop.
Save tigerclaw-az/bc4c4f718a382b48d4d4 to your computer and use it in GitHub Desktop.
.jscsrc configuration
{
"disallowAnonymousFunctions": null,
"disallowCapitalizedComments": null,
"disallowCommaBeforeLineBreak": null,
"disallowCurlyBraces": [],
"disallowDanglingUnderscores": { "allExcept": ["_gm", "_defaults", "_name", "_settings", "_options"] },
"disallowEmptyBlocks": true,
"disallowFunctionDeclarations": null,
"disallowIdentifierNames": [],
"disallowImplicitTypeConversion": [],
"disallowKeywordsInComments": [ "TODO", "FIXME" ],
"disallowKeywordsOnNewLine": [ "else" ],
"disallowKeywords": [ "with" ],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": null,
"disallowNamedUnassignedFunctions": null,
"disallowNewlineBeforeBlockStatements": true,
"disallowNotOperatorsInConditionals": null,
"disallowOperatorBeforeLineBreak": [ "." ],
"disallowPaddingNewlinesInBlocks": null,
"disallowPaddingNewLinesAfterUseStrict": null,
"disallowPaddingNewLinesBeforeExport": null,
"disallowPaddingNewlinesBeforeKeywords": [],
"disallowPaddingNewLinesBeforeLineComments": null,
"disallowPaddingNewlinesInBlocks": true,
"disallowPaddingNewLinesInObjects": null,
"disallowQuotedKeysInObjects": true,
"disallowSemicolons": null,
"disallowSpaceAfterBinaryOperators": [],
"disallowSpaceAfterKeywords": [],
"disallowSpaceAfterLineComment": null,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [],
"disallowSpaceBeforeBlockStatements": null,
"disallowSpaceBeforeKeywords": [],
"disallowSpaceBeforeObjectValues": null,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBetweenArguments": null,
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInCallExpression": true,
"disallowSpacesInConditionalExpression": null,
"disallowSpacesInForStatement": null,
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInFunction": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideArrayBrackets": null,
"disallowSpacesInsideBrackets": null,
"disallowSpacesInsideObjectBrackets": null,
"disallowSpacesInsideParentheses": true,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"maximumLineLength": {
"value": 90,
"tabSize": 1,
"allowComments": true,
"allowUrlComments": true,
"allowRegex": true
},
"requireBlocksOnNewline": true,
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"requireCapitalizedComments": { "allExcept": ["jshint", "window", "jquery", "jQuery", "document", "undefined"] },
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": [ "if", "else", "for", "while", "do", "try", "catch" ],
"requireDollarBeforejQueryAssignment": true,
"requireDotNotation": true,
"requireKeywordsOnNewLine": ["case", "default"],
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireMultipleVarDecl": true,
"requireOperatorBeforeLineBreak": true,
"requirePaddingNewLineAfterVariableDeclaration": true,
"requirePaddingNewLinesAfterUseStrict": true,
"requirePaddingNewLinesBeforeExport": true,
"requirePaddingNewlinesBeforeKeywords": [
"do",
"for",
"if",
"switch",
"case",
"try",
"catch",
"void",
"with",
"return",
"typeof"
],
"requirePaddingNewLinesBeforeLineComments": { "allExcept": "firstAfterCurly" },
"requireParenthesesAroundIIFE": true,
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceAfterKeywords": [
"do",
"for",
"if",
"else",
"switch",
"case",
"try",
"catch",
"void",
"while",
"with",
"return",
"typeof"
],
"requireSpaceAfterLineComment": { "allExcept": ["#", "="] },
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeKeywords": [
"else",
"while",
"catch"
],
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInConditionalExpression": true,
"requireSpacesInForStatement": true,
"requireSpacesInFunction": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionDeclaration": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInsideObjectBrackets": "allButNested",
"safeContextKeyword": ["self"],
"validateIndentation": "\t",
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
},
"validateLineBreaks": "LF",
"validateParameterSeparator": ", ",
"validateQuoteMarks": "'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment