Skip to content

Commit 513da40

Browse files
Trottevanlucas
authored andcommitted
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: #9408 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Prince John Wesley <[email protected]>
1 parent 60461d2 commit 513da40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ rules:
8282
computed-property-spacing: 2
8383
eol-last: 2
8484
func-call-spacing: 2
85+
func-name-matching: 2
8586
indent: [2, 2, {SwitchCase: 1, MemberExpression: 1}]
8687
key-spacing: [2, {mode: minimum}]
8788
keyword-spacing: 2

0 commit comments

Comments
 (0)