Skip to content

Instantly share code, notes, and snippets.

@leotm
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leotm/95c866be141987a98cdd to your computer and use it in GitHub Desktop.
Save leotm/95c866be141987a98cdd to your computer and use it in GitHub Desktop.
JSCS - JavaScript Code Style - Rules
{
"jscsVersion": "2.0.0",
"preset": "google",
"fileExtensions": [".js", "jscs"],
"validateQuoteMarks": true,
"requireParenthesesAroundIIFE": true,
"maximumLineLength": 120,
"validateLineBreaks": "LF",
"validateIndentation": 4,
"disallowTrailingComma": true,
"disallowSpacesInsideObjectBrackets": null,
"disallowImplicitTypeConversion": ["string"],
"safeContextKeyword": "_this",
"jsDoc": {
"checkAnnotations": "closurecompiler",
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"checkRedundantAccess": true,
"requireNewlineAfterDescription": true
},
"excludeFiles": [
"test/data/**"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment