From 513da404cb274bff536e8628671bac54959627e3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 1 Nov 2016 14:41:16 -0700 Subject: [PATCH] tools: enforce function name matching in linter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso Reviewed-By: Gibson Fahnestock Reviewed-By: Teddy Katz Reviewed-By: Prince John Wesley --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index fdfdaf0833045d..337ff4f35de17c 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