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.

42 lines
2.1 KiB

3 years ago
  1. {
  2. "disallowEmptyBlocks": true,
  3. "disallowKeywords": ["with"],
  4. "disallowMixedSpacesAndTabs": true,
  5. "disallowMultipleLineStrings": true,
  6. "disallowMultipleVarDecl": true,
  7. "disallowQuotedKeysInObjects": "allButReserved",
  8. "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
  9. "disallowSpaceBeforeBinaryOperators": [","],
  10. "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
  11. "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
  12. "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
  13. "disallowSpacesInsideArrayBrackets": true,
  14. "disallowSpacesInsideParentheses": true,
  15. "disallowTrailingComma": true,
  16. "disallowTrailingWhitespace": true,
  17. "requireCamelCaseOrUpperCaseIdentifiers": true,
  18. "requireCapitalizedConstructors": true,
  19. "requireCommaBeforeLineBreak": true,
  20. "requireDollarBeforejQueryAssignment": true,
  21. "requireDotNotation": true,
  22. "requireLineFeedAtFileEnd": true,
  23. "requirePaddingNewLinesAfterUseStrict": true,
  24. "requirePaddingNewLinesBeforeExport": true,
  25. "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  26. "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
  27. "requireSpaceAfterLineComment": true,
  28. "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
  29. "requireSpaceBetweenArguments": true,
  30. "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningCurlyBrace": true, "beforeOpeningRoundBrace": true },
  31. "requireSpacesInConditionalExpression": true,
  32. "requireSpacesInForStatement": true,
  33. "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
  34. "requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
  35. "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
  36. "requireSpacesInsideObjectBrackets": "allButNested",
  37. "validateAlignedFunctionParameters": true,
  38. "validateIndentation": 2,
  39. "validateLineBreaks": "LF",
  40. "validateNewlineAfterArrayElements": true,
  41. "validateQuoteMarks": "'"
  42. }