You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the fix for no-redundant-flow ("remove flow") I get this:
fn,;
The trailing comma is a parsing error.
I think the code for the fix could be improved to manipulate the AST rather than characters: pull out the parameter AST node from the call expression AST node.
The text was updated successfully, but these errors were encountered:
OliverJAsh
changed the title
no-redundant-flow fix ("remove flow") may result in syntax/parser errorno-redundant-flow fix ("remove flow") results in parser error due to trailing comma
Dec 11, 2021
Given:
When I run the fix for
no-redundant-flow
("remove flow") I get this:The trailing comma is a parsing error.
I think the code for the fix could be improved to manipulate the AST rather than characters: pull out the parameter AST node from the call expression AST node.
eslint-plugin-fp-ts/src/rules/no-redundant-flow.ts
Lines 32 to 40 in 58d6998
The text was updated successfully, but these errors were encountered: