Build an eslint
rule for omitted return or assignment of result.fail()
#226
Labels
eslint
rule for omitted return or assignment of result.fail()
#226
A common mistake in the implementation of a function could be the omission of the
return
on aresult.fail()
, maybe just because return can be confused with result. As an exampleWe can build a custom eslint rule to warn the developer everytime a result.fail() is called but not assigned to a const/var or directly returned because it sounds to be an error.
The text was updated successfully, but these errors were encountered: