diff --git a/packages/eslint-plugin/src/rules/explicit-function-return-type.ts b/packages/eslint-plugin/src/rules/explicit-function-return-type.ts index 06351a8ae20..3addbb6a0f9 100644 --- a/packages/eslint-plugin/src/rules/explicit-function-return-type.ts +++ b/packages/eslint-plugin/src/rules/explicit-function-return-type.ts @@ -222,7 +222,8 @@ export default util.createRule({ function checkFunctionExpressionReturnType( node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression, ): void { - if (node.parent) { + // Should always have a parent; checking just in case + /* istanbul ignore else */ if (node.parent) { if (options.allowTypedFunctionExpressions) { if ( isTypeCast(node.parent) ||