Skip to content

Files

Latest commit

 

History

History
18 lines (11 loc) · 607 Bytes

SlevomatCodingStandard.Functions.ArrowFunctionDeclaration.md

File metadata and controls

18 lines (11 loc) · 607 Bytes

Pattern: Inconsistent arrow function declaration

Issue: -

Description

Checks fn declaration.

Rule provides the following settings:

  • spacesCountAfterKeyword: the number of spaces after fn.
  • spacesCountBeforeArrow: the number of spaces before =>.
  • spacesCountAfterArrow: the number of spaces after =>.
  • allowMultiLine: allows multi-line declaration.

Further Reading