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
108108
109109| Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | 💭 | ❌ |
110110| :------------------------------------------------------- | :----------------------------------------------------- | :-------------------------------- | :-- | :---- | :-- | :-- | :-- | :-- |
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. | | | | | | | |
112112| [ no-throw-statements] ( docs/rules/no-throw-statements.md ) | Disallow throwing exceptions. | ☑️ ✅ 🔒 ![ badge-no-exceptions] [ ] | | | | | | |
113113| [ no-try-statements] ( docs/rules/no-try-statements.md ) | Disallow try-catch[ -finally] and try-finally patterns. | 🔒 ![ badge-no-exceptions] [ ] | | ☑️ ✅ | | | | |
114114
Original file line number Diff line number Diff line change 1- # Disallow rejecting promises
1+ # Disallow rejecting promises ( ` functional/no-promise-reject ` )
22
33<!-- end auto-generated rule header -->
44
@@ -37,6 +37,6 @@ async function divide(x, y) {
3737
3838 return yv === 0
3939 ? { error: new Error (" Cannot divide by zero." ) }
40- : { value: xv / yv};
40+ : { value: xv / yv };
4141}
4242```
You can’t perform that action at this time.
0 commit comments