diff options
author | Rich Trott <rtrott@gmail.com> | 2016-11-01 14:41:16 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-11-03 19:45:00 -0700 |
commit | 7537718460c7b964ffbbc0910b12eaff9cd8b7a8 (patch) | |
tree | eaeda734624b675be9fc9d17344ce8f5dccd8f73 | |
parent | 5cbb7a887a7ddb737252ecf60fbebc2005af090c (diff) | |
download | node-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-- | .eslintrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |