Skip to content

Instantly share code, notes, and snippets.

@alekseykulikov
Last active August 29, 2015 14:18
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 alekseykulikov/6b4d9b99973921270046 to your computer and use it in GitHub Desktop.
Save alekseykulikov/6b4d9b99973921270046 to your computer and use it in GitHub Desktop.
Code Style: ~/.jscsrc and atom's linter + linter-jscs
{
"preset": "node-style-guide",
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", // for external APIs
"requireCapitalizedComments": null, // why???
"requireCurlyBraces": null, // allow one lines
"requireTrailingComma": null, optional
// personal style
"maximumLineLength": { // 80 is a goal, but sometimes it's necessary
"value": 120,
"allowComments": true
},
"requireSpacesInConditionalExpression": true, // a == b ? 1 : 2
"requireSpacesInsideObjectBrackets": "all" // force { my: "key" },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment