From 10520b0d3cc17b0e2edba8d8462689b5706c3df3 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 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. --- .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