From 70af7aa4327a03ca0783e5a5aa50f48460d1ee7c Mon Sep 17 00:00:00 2001 From: Ismail Syed Date: Mon, 16 Jan 2017 17:17:11 -0500 Subject: [PATCH] Update eslint-plugin-promise rules --- lib/config/rules/promise.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config/rules/promise.js b/lib/config/rules/promise.js index 1fc4cef5..db791370 100644 --- a/lib/config/rules/promise.js +++ b/lib/config/rules/promise.js @@ -21,13 +21,13 @@ module.exports = { // Avoid calling cb() inside of a then() (use nodeify] instead) 'promise/no-callback-in-promise': 'warn', // Avoid creating new promises outside of utility libs (use pify instead) - 'promise/avoid-new': 'warn', + 'promise/avoid-new': 'off', // Async/Await Rules // Prefer await to then() for reading Promise values - 'promise/prefer-await-to-then': 'error', + 'promise/prefer-await-to-then': 'off', // Prefer async/await to the callback pattern - 'promise/prefer-await-to-callbacks': 'error', + 'promise/prefer-await-to-callbacks': 'off', };