You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.8 KiB

4 years ago
  1. {
  2. "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
  3. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
  4. "disallowSpaceAfterKeywords": [],
  5. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
  6. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  7. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  8. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  9. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  10. "disallowSpacesInsideParentheses": true,
  11. "disallowSpacesInsideArrayBrackets": true,
  12. "disallowQuotedKeysInObjects": "allButReserved",
  13. "disallowSpaceAfterObjectKeys": true,
  14. "requireCommaBeforeLineBreak": true,
  15. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  16. "requireSpaceAfterPrefixUnaryOperators": [],
  17. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  18. "requireSpaceBeforePostfixUnaryOperators": [],
  19. "disallowSpaceBeforeBinaryOperators": [],
  20. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  21. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
  22. "disallowSpaceAfterBinaryOperators": [],
  23. "disallowImplicitTypeConversion": ["binary", "string"],
  24. "disallowKeywords": ["with", "eval"],
  25. "validateLineBreaks": "LF",
  26. "requireKeywordsOnNewLine": [],
  27. "disallowKeywordsOnNewLine": ["else"],
  28. "requireLineFeedAtFileEnd": true,
  29. "disallowTrailingWhitespace": true,
  30. "excludeFiles": ["node_modules/**", "vendor/**"],
  31. "disallowMultipleLineStrings": true,
  32. "additionalRules": []
  33. }