Skip to content

Commit

Permalink
docs: update no-promise-executor-return examples
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 3, 2023
1 parent 032c4b1 commit cdbe967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/rules/no-promise-executor-return.md
Expand Up @@ -75,6 +75,7 @@ Examples of **correct** code for this rule:

```js
/*eslint no-promise-executor-return: "error"*/
/*eslint-env es6*/

// Turn return inline into two lines
new Promise((resolve, reject) => {
Expand Down Expand Up @@ -123,6 +124,7 @@ Examples of **correct** code for this rule with the `{ "allowVoid": true }` opti

```js
/*eslint no-promise-executor-return: ["error", { allowVoid: true }]*/
/*eslint-env es6*/

new Promise((resolve, reject) => {
if (someCondition) {
Expand Down

0 comments on commit cdbe967

Please sign in to comment.