Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Update eslint-plugin-promise rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-syed committed Jan 16, 2017
1 parent 5fbefbc commit 70af7aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/config/rules/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

0 comments on commit 70af7aa

Please sign in to comment.