File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ The [below section](#rules) gives details on which rules are enabled by each rul
108
108
109
109
| Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
110
110
| :------------------------------------------------------- | :----------------------------------------------------- | :-------------------------------- | :-- | :---- | :-- | :-- | :-- | :-- |
111
- | [ no-promise-reject] ( docs/rules/no-promise-reject.md ) | Disallow try-catch [ -finally ] and try-finally patterns. | | | | | | | |
111
+ | [ no-promise-reject] ( docs/rules/no-promise-reject.md ) | Disallow rejecting promises. | | | | | | | |
112
112
| [ no-throw-statements] ( docs/rules/no-throw-statements.md ) | Disallow throwing exceptions. | ☑️ ✅ 🔒 ![ badge-no-exceptions] [ ] | | | | | | |
113
113
| [ no-try-statements] ( docs/rules/no-try-statements.md ) | Disallow try-catch[ -finally] and try-finally patterns. | 🔒 ![ badge-no-exceptions] [ ] | | ☑️ ✅ | | | | |
114
114
Original file line number Diff line number Diff line change 1
- # Disallow rejecting promises
1
+ # Disallow rejecting promises ( ` functional/no-promise-reject ` )
2
2
3
3
<!-- end auto-generated rule header -->
4
4
@@ -37,6 +37,6 @@ async function divide(x, y) {
37
37
38
38
return yv === 0
39
39
? { error: new Error (" Cannot divide by zero." ) }
40
- : { value: xv / yv};
40
+ : { value: xv / yv };
41
41
}
42
42
```
You can’t perform that action at this time.
0 commit comments