Skip to content

Commit

Permalink
JSCS: Add "disallowSpacesInFunctionDeclaration"
Browse files Browse the repository at this point in the history
Valid:

    function a() {}

Invalid:

    function a () {}
  • Loading branch information
hnrch02 committed Mar 26, 2015
1 parent 5833d07 commit da63ff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/.jscsrc
Expand Up @@ -8,6 +8,7 @@
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforeBinaryOperators": [","],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
Expand Down

0 comments on commit da63ff2

Please sign in to comment.