Commit da63ff2e authored by Heinrich Fenkart's avatar Heinrich Fenkart
Browse files

JSCS: Add "disallowSpacesInFunctionDeclaration"

Valid:

    function a() {}

Invalid:

    function a () {}
parent 5833d079
5 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!16162JSCS: Add "disallowSpacesInFunctionDeclaration",!25326Adjust examples
Showing with 1 addition and 0 deletions
+1 -0
......@@ -8,6 +8,7 @@
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforeBinaryOperators": [","],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment