|
| 1 | +{ |
| 2 | + "requireCurlyBraces": ["if", "else", "for", "while", "do"], |
| 3 | + "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"], |
| 4 | + |
| 5 | + "requireParenthesesAroundIIFE": true, |
| 6 | + "requireSpacesInFunctionExpression": { |
| 7 | + "beforeOpeningCurlyBrace": true |
| 8 | + }, |
| 9 | + "requireSpacesInAnonymousFunctionExpression": { |
| 10 | + "beforeOpeningRoundBrace": true |
| 11 | + }, |
| 12 | + "disallowSpacesInNamedFunctionExpression": { |
| 13 | + "beforeOpeningRoundBrace": true |
| 14 | + }, |
| 15 | + "requireSpacesInFunctionDeclaration": { |
| 16 | + "beforeOpeningCurlyBrace": true |
| 17 | + }, |
| 18 | + "disallowSpacesInFunctionDeclaration": { |
| 19 | + "beforeOpeningRoundBrace": true |
| 20 | + }, |
| 21 | + |
| 22 | + "requireBlocksOnNewline": true, |
| 23 | + "disallowEmptyBlocks": true, |
| 24 | + |
| 25 | + "disallowSpacesInsideObjectBrackets": true, |
| 26 | + "disallowSpacesInsideArrayBrackets": true, |
| 27 | + "disallowSpacesInsideParentheses": true, |
| 28 | + |
| 29 | + "disallowSpaceAfterObjectKeys": true, |
| 30 | + "requireCommaBeforeLineBreak": true, |
| 31 | + |
| 32 | + "requireOperatorBeforeLineBreak": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], |
| 33 | + |
| 34 | + "requireLeftStickedOperators": [","], |
| 35 | + "disallowLeftStickedOperators": ["?"], |
| 36 | + "disallowRightStickedOperators": ["?", ":"], |
| 37 | + |
| 38 | + "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], |
| 39 | + "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], |
| 40 | + "requireSpaceBeforeBinaryOperators": ["/", "+", "-", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], |
| 41 | + "requireSpaceAfterBinaryOperators": ["/", "+", "-", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], |
| 42 | + |
| 43 | + "disallowKeywords": ["with"], |
| 44 | + |
| 45 | + "disallowMultipleLineStrings": true, |
| 46 | + "validateQuoteMarks": "'", |
| 47 | + "disallowMixedSpacesAndTabs": true, |
| 48 | + "disallowTrailingWhitespace": true, |
| 49 | + |
| 50 | + "disallowKeywordsOnNewLine": ["else", "catch"], |
| 51 | + "requireLineFeedAtFileEnd": true, |
| 52 | + "maximumLineLength": 120, |
| 53 | + |
| 54 | + "requireCapitalizedConstructors": true, |
| 55 | + "requireDotNotation": true, |
| 56 | + |
| 57 | + "excludeFiles": [ |
| 58 | + "node_modules/**", |
| 59 | + "dist/**" |
| 60 | + ], |
| 61 | + |
| 62 | + "additionalRules": ["node_modules/jscs-trailing-comma/rules/*.js"], |
| 63 | + |
| 64 | + "requireTrailingCommaInExpandedLiterals": { |
| 65 | + "inArrays": true, |
| 66 | + "inObjects": true |
| 67 | + }, |
| 68 | + "disallowTrailingCommaInCollapsedLiterals": { |
| 69 | + "inArrays": true, |
| 70 | + "inObjects": true |
| 71 | + } |
| 72 | + |
| 73 | +} |
0 commit comments