summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-11-01 14:41:16 -0700
committerRich Trott <rtrott@gmail.com>2016-11-03 19:45:00 -0700
commit7537718460c7b964ffbbc0910b12eaff9cd8b7a8 (patch)
treeeaeda734624b675be9fc9d17344ce8f5dccd8f73
parent5cbb7a887a7ddb737252ecf60fbebc2005af090c (diff)
downloadnode-new-7537718460c7b964ffbbc0910b12eaff9cd8b7a8.tar.gz
tools: enforce function name matching in linter
ESLint has a `func-name-matching` rule that requires that function names match the variable or property to which they are being assigned. The code base currently has 100% compliance with this rule. Enable the rule to keep it that way. PR-URL: https://github.com/nodejs/node/pull/9408 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
-rw-r--r--.eslintrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index fdfdaf0833..337ff4f35d 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -82,6 +82,7 @@ rules:
computed-property-spacing: 2
eol-last: 2
func-call-spacing: 2
+ func-name-matching: 2
indent: [2, 2, {SwitchCase: 1, MemberExpression: 1}]
key-spacing: [2, {mode: minimum}]
keyword-spacing: 2