ff73f1af92
no issue - update grunt-jscs dependency - fix deprecated `validateJSDoc` configuration - fix numerous linting errors, including: - use of future-reserved `public` and `private` variable names - use of `[]` instead of dot-notation (especially `express['static']` and `cacheRules['x']`) - extra spaces in `const { run } = Ember` style constructs One issue that did become apparent is that there are conflicting rules that prevent the use of object function shorthand such that both of these: ``` { myFunc() {} } { myFunc () {} } ``` are called out due to either the missing or the extra space before the `(`
77 lines
2.3 KiB
Plaintext
77 lines
2.3 KiB
Plaintext
{
|
|
"additionalRules": [ "core/test/utils/jscs-rules/*.js" ],
|
|
"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
|
|
}
|