Permalink
Browse files

tools: require function declarations

Except for arrow functions, require function declarations instead of
function expressions via linting. This is the predominant style in our
code base (77 instances of expressions to 2344 instances of
declarations).

PR-URL: #12711
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
  • Loading branch information...
Trott committed Apr 28, 2017
1 parent a180259 commit aea7269c45f91fd983e8ca91fddd4021fc40d099
Showing with 1 addition and 0 deletions.
  1. +1 −0 .eslintrc.yaml
@@ -97,6 +97,7 @@ rules:
eol-last: 2
func-call-spacing: 2
func-name-matching: 2
func-style: [2, declaration, {allowArrowFunctions: true}]
indent: [2, 2, {ArrayExpression: first,
CallExpression: {arguments: first},
MemberExpression: 1,

0 comments on commit aea7269

Please sign in to comment.