Skip to content

Commit 517b196

Browse files
fix: loosen promise rules
1 parent 9f1b661 commit 517b196

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/promise.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ export const settings: Linter.Config = {
66
extends: ["plugin:promise/recommended"],
77

88
rules: {
9+
"promise/always-return": "off",
910
"promise/avoid-new": "warn",
11+
"promise/catch-or-return": "off",
1012
"promise/no-nesting": "error",
1113
"promise/no-promise-in-callback": "error",
1214
"promise/no-return-in-finally": "error",
13-
"promise/prefer-await-to-callbacks": "warn",
15+
"promise/prefer-await-to-callbacks": "off",
1416
"promise/prefer-await-to-then": "off",
1517
"promise/valid-params": "error",
1618
},

0 commit comments

Comments
 (0)