Commit ed62c87e8d510636b526b42c26701a105ab0d980

Authored by Leonardo Merlin
1 parent bde8b785

Add config for js code formatter

Showing 1 changed file with 32 additions and 0 deletions   Show diff stats
.jscsrc 0 → 100644
@@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
  1 +{
  2 + "preset": "google",
  3 + "fileExtensions": [".js", "jscs"],
  4 +
  5 + "requireParenthesesAroundIIFE": true,
  6 + "maximumLineLength": 120,
  7 + "validateLineBreaks": "LF",
  8 + "validateIndentation": 2,
  9 + "disallowTrailingComma": true,
  10 +
  11 + "disallowSpacesInsideObjectBrackets": null,
  12 + "disallowImplicitTypeConversion": ["string"],
  13 +
  14 + "safeContextKeyword": "_this",
  15 +
  16 + "jsDoc": {
  17 + "checkAnnotations": "closurecompiler",
  18 + "checkParamNames": true,
  19 + "requireParamTypes": true,
  20 + "checkRedundantParams": true,
  21 + "checkReturnTypes": true,
  22 + "checkRedundantReturns": true,
  23 + "requireReturnTypes": true,
  24 + "checkTypes": "capitalizedNativeCase",
  25 + "checkRedundantAccess": true,
  26 + "requireNewlineAfterDescription": true
  27 + },
  28 +
  29 + "excludeFiles": [
  30 + "test/data/**"
  31 + ]
  32 +}