mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
71282a241e
no issue - remove bower from dependencies, greenkeeper ignores & .editorconfig - remove old custom jscs rule for ember
76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
{
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"case",
|
|
"return",
|
|
"try",
|
|
"catch",
|
|
"function",
|
|
"typeof"
|
|
],
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"disallowSpacesInFunctionDeclaration": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"requireMultipleVarDecl": "onevar",
|
|
"requireBlocksOnNewline": 1,
|
|
"disallowPaddingNewlinesInBlocks": true,
|
|
"disallowEmptyBlocks": true,
|
|
"disallowSpacesInsideObjectBrackets": "all",
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"disallowQuotedKeysInObjects": true,
|
|
"disallowSpaceAfterObjectKeys": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
","
|
|
],
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
|
|
"disallowKeywords": [ "with" ],
|
|
"disallowMultipleLineBreaks": true,
|
|
"validateQuoteMarks": "'",
|
|
"validateIndentation": 4,
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowKeywordsOnNewLine": [ "else" ],
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"safeContextKeyword": ["self"],
|
|
"requireDotNotation": true,
|
|
"disallowYodaConditions": true,
|
|
"jsDoc": {
|
|
"checkParamNames": true,
|
|
"checkRedundantParams": true,
|
|
"requireParamTypes": true
|
|
},
|
|
"requireSpaceAfterLineComment": true,
|
|
"disallowNewlineBeforeBlockStatements": true
|
|
}
|