Don't allow rejecting with non-error objects

Summary: This will make it easier to handle errors, because you know you can get the message out, along with stack trace, without having to deal with potentially any object that could be passed in.

Reviewed By: passy

Differential Revision: D16006180

fbshipit-source-id: f200965d7663c5f8a471603fceb6b4cdbea73381
This commit is contained in:
John Knox
2019-06-26 09:56:17 -07:00
committed by Facebook Github Bot
parent 34f835ace8
commit 0a0aec17ca

View File

@@ -24,6 +24,7 @@ module.exports = {
'max-len': 0, // let's take prettier take care of this
indent: 0, // let's take prettier take care of this
'no-console': 0, // we're setting window.console in App.js
'prefer-promise-reject-errors': 1,
// additional rules for this project
'header/header': [2, 'block', {pattern}],