Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (72 sloc) 2.28 KB
{
"additionalRules": [
"tasks/utilities/disallow-direct-pointer-events.js",
"tasks/utilities/disallow-direct-get-computed-style.js"
],
"disallowDirectPointerEvents": true,
"disallowDirectGetComputedStyle": true,
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"case",
"return",
"try",
"catch",
"function",
"typeof"
],
// Below options from the "Crockford" preset.
// Let's think about which make sense.
// "requireSpaceBeforeBlockStatements": true,
// "requireParenthesesAroundIIFE": true,
// "requireSpacesInConditionalExpression": true,
// "disallowSpacesInNamedFunctionExpression": {
// "beforeOpeningRoundBrace": true
// },
// "disallowSpacesInFunctionDeclaration": {
// "beforeOpeningRoundBrace": true
// },
// "requireMultipleVarDecl": "onevar",
// "requireBlocksOnNewline": 1,
// "disallowEmptyBlocks": true,
// "disallowSpacesInsideArrayBrackets": true,
// "disallowSpacesInsideParentheses": true,
// "disallowQuotedKeysInObjects": true,
// "disallowDanglingUnderscores": true,
// "disallowSpaceAfterObjectKeys": true,
// "requireCommaBeforeLineBreak": true,
// "disallowSpaceAfterPrefixUnaryOperators": true,
// "disallowSpaceBeforePostfixUnaryOperators": true,
// "disallowSpaceBeforeBinaryOperators": [
// ","
// ],
// "requireSpaceBeforeBinaryOperators": true,
// "requireSpaceAfterBinaryOperators": true,
// "requireCamelCaseOrUpperCaseIdentifiers": true,
// "disallowKeywords": [ "with" ],
// "disallowMultipleLineBreaks": true,
// "validateLineBreaks": "LF",
// "validateQuoteMarks": "'",
// "validateIndentation": 4,
"disallowMixedSpacesAndTabs": true,
// "disallowTrailingComma": true,
"disallowKeywordsOnNewLine": [ "else" ]
// "requireLineFeedAtFileEnd": true,
// "requireCapitalizedConstructors": true,
// "requireDotNotation": true,
// "disallowYodaConditions": true,
// "disallowAnonymousFunctions": true // make Edgar happy
}
You can’t perform that action at this time.