[explicit-module-boundary-types] allowTypedFunctionExpressions
no longer applies to arguments
#1552
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Here's the repo itself: https://github.com/G-Rath/terraport/blob/master/src/formatter/ensurers.ts#L10
Expected Result
blocks
should not require a type, due to the type annotation on the variable.Actual Result
Additional Info
Overall,
explicit-module-boundary-types
seems to have jumped in noise, as it's now erroring on a lot of my code.For example:
I've now got
block
&node
being marked as errors due to not being annotated with a type.I've focused on
block
for now in this issue, but it seems like the behaviour is to now require a type definition for any function that is within a function that is exported.Another example:
Here
node
is marked as requiring a type, which I'd argue it shouldn't as it's not at the boundary - it's internal as an implementation detail.It seems to me like #1490 might have had the opposite effect?
(It could be that I've misunderstood the intention of the rule, in which case I can turn this into a feature request I guess?)
Versions
@typescript-eslint/eslint-plugin
2.18.1-alpha.5
@typescript-eslint/parser
2.18.1-alpha.5
TypeScript
3.7.5
ESLint
6.8.0
node
12.14.1
npm
6.13..6
The text was updated successfully, but these errors were encountered: