// JavaScript Code Style config for Panda.js { "requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return", "try", "catch" ], "requireSpaceBeforeBlockStatements": true, "requireParenthesesAroundIIFE": true, "requireBlocksOnNewline": true, "disallowPaddingNewlinesInBlocks2": true, "disallowEmptyBlocks": true, "disallowSpacesInsideArrayBrackets": true, "disallowSpacesInsideParentheses": true, "requireSpacesInsideObjectBrackets": "allButNested", "disallowSpaceAfterObjectKeys": true, "requireCommaBeforeLineBreak": true, "requireOperatorBeforeLineBreak": [ "?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ], "disallowLeftStickedOperators": [ "?", "+", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "||" ], "disallowRightStickedOperators": [ "?", "+", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", ";", ",", "||" ], "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "requireSpaceBeforeBinaryOperators": [ // "+", "-", "/", "*", "=" ], "requireSpaceAfterBinaryOperators": [ // "+", "-", "/", "*", "=" ], // "requireCamelCaseOrUpperCaseIdentifiers": true, "disallowMultipleEmptyLines": true, "validateQuoteMarks": "'", "disallowMixedSpacesAndTabs": true, "allowTrailingWhitespaceOnEmptyLines": true, "requireKeywordsOnNewLine": [ "else" ], // "maximumLineLength": 200, // "requireCapitalizedConstructors": true, "disallowYodaConditions": true, "disallowMultipleLineStrings": true, "disallowParenthesesAfterKeywords": [ "typeof", "instanceof" ], "requireTypeCoercion": true, "validateIndentationInsideBody": 4, "additionalRules": ["rules/*.js"], "excludeFiles": ["src/engine/pixi.js"], "disallowNewlinesBeforeCurlyBraces": [ ")" ], "disallowMultipleSpaces": true, "requireNewlineAfterBlock": true, // "disallowNewlineAtFileEnd": true, "requireLineFeedAtFileEnd": true }