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
For our utility hasThrowValue (used by require-throws) and hasYieldValue (used by require-yields and require-yields-check), I believe we may need to support some of the following AST branches (even if not of interest to hasReturns on which these functions were based).
Expected behavior
For our utility
hasThrowValue
(used byrequire-throws
) andhasYieldValue
(used byrequire-yields
andrequire-yields-check
), I believe we may need to support some of the following AST branches (even if not of interest tohasReturns
on which these functions were based).And if #683 is accepted, these checks will be needed for
resolve
as well (in itshasValueOrExecutorHasNonEmptyResolveValue
).Actual behavior
Treats those expressions (and anything within them, including any
throw
/yield
) as not throwing/not yielding.So,
require-throws
andrequire-yields
may falsely fail to report andrequire-yields-check
can report when it should not.ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 31.4.0The text was updated successfully, but these errors were encountered: