Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Last active August 29, 2015 14:17
Show Gist options
  • Save typeoneerror/9f1c027ee55898fc5bbe to your computer and use it in GitHub Desktop.
Save typeoneerror/9f1c027ee55898fc5bbe to your computer and use it in GitHub Desktop.
.jscsrc
{
"disallowEmptyBlocks": true,
"disallowMixedSpacesAndTabs": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInCallExpression": true,
"disallowSpacesInFunctionDeclaration": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideArrayBrackets": "nested",
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"disallowYodaConditions": true,
"esnext": true,
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireKeywordsOnNewLine": ["else"],
"requireLineBreakAfterVariableAssignment": true,
"requireLineFeedAtFileEnd": true,
"requireParenthesesAroundIIFE": true,
"requireSpaceAfterBinaryOperators": true,
"requireSpaceBeforeBinaryOperators": true,
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeObjectValues": true,
"requireSpaceBetweenArguments": true,
"safeContextKeyword": ["that"],
"validateIndentation": 2,
"validateParameterSeparator": ", ",
"validateQuoteMarks": { "mark": "'", "escape": true }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment