padding-line-between-statements
: support arrow node type
#395
Labels
enhancement
New feature or request
padding-line-between-statements
: support arrow node type
#395
Clear and concise description of the problem
I would like the arrow node type to be added to the list of node types for the
padding-line-between-statements
rule. Currentlyconst funcname = () => {...}
is interpreted asconst
, which is technically true, but is also a very common way to define functions without the function keyword. As such, it would help for controlling padding lines to be able to select lines with arrow functions in them.Suggested solution
Alternative
No response
Additional context
The feature is taken from here: https://github.com/eslint/eslint/pull/16970/files and was rejected by eslint as being too stylistic, hence I would like to have it added to stylistic.
Validations
Contributes
The text was updated successfully, but these errors were encountered: