|
|
|
@ -8,11 +8,14 @@
|
|
|
|
|
"disallowRightStickedOperators": ["?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], |
|
|
|
|
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], |
|
|
|
|
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], |
|
|
|
|
"disallowSpacesInsideArrayBrackets": true, |
|
|
|
|
"disallowSpacesInsideParentheses": true, |
|
|
|
|
"disallowTrailingWhitespace": true, |
|
|
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true, |
|
|
|
|
"requireCapitalizedConstructors": true, |
|
|
|
|
"requireCommaBeforeLineBreak": true, |
|
|
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"], |
|
|
|
|
"requireDotNotation": true, |
|
|
|
|
"requireLeftStickedOperators": [","], |
|
|
|
|
"requireLineFeedAtFileEnd": true, |
|
|
|
|
"requireParenthesesAroundIIFE": true, |
|
|
|
@ -20,7 +23,11 @@
|
|
|
|
|
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], |
|
|
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], |
|
|
|
|
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="], |
|
|
|
|
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true }, |
|
|
|
|
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, |
|
|
|
|
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true }, |
|
|
|
|
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, |
|
|
|
|
"requireSpacesInsideObjectBrackets": "allButNested", |
|
|
|
|
"validateIndentation": 2, |
|
|
|
|
"validateLineBreaks": "LF", |
|
|
|
|
"validateQuoteMarks": "'" |
|
|
|
|