Skip to content

Instantly share code, notes, and snippets.

@maxpoletaev
Created April 21, 2014 21:31
Show Gist options
  • Save maxpoletaev/11157288 to your computer and use it in GitHub Desktop.
Save maxpoletaev/11157288 to your computer and use it in GitHub Desktop.
Configuration for JSRC
{
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
"disallowMultipleLineBreaks": true,
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
"disallowImplicitTypeConversion": ["string"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch"],
"requireLineFeedAtFileEnd": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"validateLineBreaks": "LF",
"maximumLineLength": 80,
"requireCapitalizedConstructors": true,
"safeContextKeyword": [ "that" ],
"disallowYodaConditions": true,
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
},
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"validateIndentation": 2,
"validateQuoteMarks": "'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment