Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit a7ec01d

Browse files
committed
feat(base): add new eslint-plugin-promise rules
1 parent b7f7b96 commit a7ec01d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-config/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ module.exports = {
113113
'promise/no-callback-in-promise': 'error',
114114
'promise/no-native': 'off',
115115
'promise/no-nesting': 'error',
116+
'promise/no-new-statics': 'error',
116117
'promise/no-promise-in-callback': 'error',
117118
'promise/no-return-in-finally': 'error',
118119
'promise/no-return-wrap': 'error',
119120
'promise/param-names': 'error',
120121
'promise/prefer-await-to-callbacks': 'off',
121122
'promise/prefer-await-to-then': 'error',
123+
'promise/valid-params': 'error',
122124
// https://github.com/sindresorhus/eslint-plugin-unicorn
123125
'unicorn/catch-error-name': 'off',
124126
'unicorn/custom-error-definition': 'off',

0 commit comments

Comments
 (0)