From 0b02f5b7bafbaa468684fd2af3c3d6b5662da486 Mon Sep 17 00:00:00 2001 From: ShikChen Date: Tue, 11 Dec 2018 14:56:27 +0800 Subject: [PATCH] Require using Error objects in Promise rejection It's now required in the internal style guide. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index be42cf2..290330d 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ module.exports = { // 'no-void': 0, // 'no-warning-comments': 0, 'no-with': 2, - // 'prefer-promise-reject-errors': 0, + 'prefer-promise-reject-errors': 2, // 'radix': 0, // 'require-await': 0, // 'vars-on-top': 0,