Matteo Scandolo | 46b5610 | 2015-12-16 14:23:08 -0800 | [diff] [blame] | 1 | { |
| 2 | "requireCurlyBraces": [ |
| 3 | "if", |
| 4 | "else", |
| 5 | "for", |
| 6 | "while", |
| 7 | "do", |
| 8 | "try", |
| 9 | "catch" |
| 10 | ], |
| 11 | "requireSpaceAfterKeywords": [ |
| 12 | "if", |
| 13 | "else", |
| 14 | "for", |
| 15 | "while", |
| 16 | "do", |
| 17 | "switch", |
| 18 | "return", |
| 19 | "try", |
| 20 | "catch" |
| 21 | ], |
| 22 | "requireSpaceBeforeBlockStatements": true, |
| 23 | "requireSpacesInConditionalExpression": { |
| 24 | "afterTest": true, |
| 25 | "beforeConsequent": true, |
| 26 | "afterConsequent": true, |
| 27 | "beforeAlternate": true |
| 28 | }, |
| 29 | "requireSpacesInFunctionExpression": { |
| 30 | "beforeOpeningRoundBrace": true, |
| 31 | "beforeOpeningCurlyBrace": true |
| 32 | }, |
| 33 | "requireSpacesInAnonymousFunctionExpression": { |
| 34 | "beforeOpeningRoundBrace": true, |
| 35 | "beforeOpeningCurlyBrace": true |
| 36 | }, |
| 37 | "requireSpacesInNamedFunctionExpression": { |
| 38 | "beforeOpeningRoundBrace": true, |
| 39 | "beforeOpeningCurlyBrace": true |
| 40 | }, |
| 41 | "requireSpacesInFunctionDeclaration": { |
| 42 | "beforeOpeningRoundBrace": true, |
| 43 | "beforeOpeningCurlyBrace": true |
| 44 | }, |
| 45 | "requireMultipleVarDecl": true, |
| 46 | "requireBlocksOnNewline": 1, |
| 47 | "disallowEmptyBlocks": true, |
| 48 | "disallowSpacesInsideObjectBrackets": true, |
| 49 | "disallowSpacesInsideArrayBrackets": true, |
| 50 | "disallowSpacesInsideParentheses": true, |
| 51 | "disallowSpaceAfterObjectKeys": true, |
| 52 | "requireCommaBeforeLineBreak": true, |
| 53 | "requireOperatorBeforeLineBreak": [ |
| 54 | "?", |
| 55 | "=", |
| 56 | "+", |
| 57 | "-", |
| 58 | "/", |
| 59 | "*", |
| 60 | "==", |
| 61 | "===", |
| 62 | "!=", |
| 63 | "!==", |
| 64 | ">", |
| 65 | ">=", |
| 66 | "<", |
| 67 | "<=" |
| 68 | ], |
| 69 | "requireSpaceBeforeBinaryOperators": [ |
| 70 | "?", |
| 71 | "=", |
| 72 | "+", |
| 73 | "-", |
| 74 | "/", |
| 75 | "*", |
| 76 | "==", |
| 77 | "===", |
| 78 | "!=", |
| 79 | "!==", |
| 80 | ">", |
| 81 | ">=", |
| 82 | "<", |
| 83 | "<=" |
| 84 | ], |
| 85 | "requireSpaceAfterBinaryOperators": [ |
| 86 | "?", |
| 87 | "=", |
| 88 | "+", |
| 89 | "/", |
| 90 | "*", |
| 91 | ":", |
| 92 | "==", |
| 93 | "===", |
| 94 | "!=", |
| 95 | "!==", |
| 96 | ">", |
| 97 | ">=", |
| 98 | "<", |
| 99 | "<=", |
| 100 | "," |
| 101 | ], |
| 102 | "disallowSpaceBeforeBinaryOperators": [","], |
| 103 | "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], |
| 104 | "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], |
| 105 | "requireSpaceBeforeBinaryOperators": [ |
| 106 | "=", |
| 107 | "+", |
| 108 | "-", |
| 109 | "/", |
| 110 | "*", |
| 111 | "==", |
| 112 | "===", |
| 113 | "!=", |
| 114 | "!==" |
| 115 | ], |
| 116 | "requireSpaceAfterBinaryOperators": [ |
| 117 | "=", |
| 118 | ",", |
| 119 | "+", |
| 120 | "-", |
| 121 | "/", |
| 122 | "*", |
| 123 | "==", |
| 124 | "===", |
| 125 | "!=", |
| 126 | "!==" |
| 127 | ], |
| 128 | "disallowImplicitTypeConversion": [ |
| 129 | "numeric", |
| 130 | "boolean", |
| 131 | "binary", |
| 132 | "string" |
| 133 | ], |
| 134 | "requireCamelCaseOrUpperCaseIdentifiers": true, |
| 135 | "disallowKeywords": ["with"], |
| 136 | "disallowMultipleLineBreaks": true, |
| 137 | "validateLineBreaks": "LF", |
| 138 | "validateQuoteMarks": "'", |
| 139 | "validateIndentation": 4, |
| 140 | "disallowMixedSpacesAndTabs": true, |
| 141 | "disallowTrailingWhitespace": true, |
| 142 | "disallowTrailingComma": true, |
| 143 | "disallowKeywordsOnNewLine": ["else"], |
| 144 | "maximumLineLength": 120, |
| 145 | "safeContextKeyword": ["$this"], |
| 146 | "disallowYodaConditions": true, |
| 147 | "validateJSDoc": { |
| 148 | "checkParamNames": true, |
| 149 | "checkRedundantParams": true, |
| 150 | "requireParamTypes": true |
| 151 | }, |
| 152 | "requireLineFeedAtFileEnd": true |
| 153 | } |