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
Sometimes it's useful to attach additional information to the error, so I use throw Object.assign(Error('...'), ...). throw-new-error should report on this use case.
I haven't checked, but other error related rules like prefer-type-error, error-message should aware this pattern too.
The text was updated successfully, but these errors were encountered:
Sometimes it's useful to attach additional information to the error, so I use
throw Object.assign(Error('...'), ...)
.throw-new-error
should report on this use case.I haven't checked, but other error related rules like
prefer-type-error
,error-message
should aware this pattern too.The text was updated successfully, but these errors were encountered: