We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
eslint
Learn more about funding links in repositories.
Report abuse
no-promise-executor-return
1 parent 203a971 commit de86b3bCopy full SHA for de86b3b
docs/src/rules/no-promise-executor-return.md
@@ -38,6 +38,7 @@ Examples of **incorrect** code for this rule:
38
39
```js
40
/*eslint no-promise-executor-return: "error"*/
41
+/*eslint-env es6*/
42
43
new Promise((resolve, reject) => {
44
if (someCondition) {
@@ -75,6 +76,7 @@ Examples of **correct** code for this rule:
75
76
77
78
79
80
81
// Turn return inline into two lines
82
@@ -123,6 +125,7 @@ Examples of **correct** code for this rule with the `{ "allowVoid": true }` opti
123
125
124
126
127
/*eslint no-promise-executor-return: ["error", { allowVoid: true }]*/
128
129
130
131
0 commit comments