File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Examples of **incorrect** code for this rule:
38
38
39
39
``` js
40
40
/* eslint no-promise-executor-return: "error"*/
41
+ /* eslint-env es6*/
41
42
42
43
new Promise ((resolve , reject ) => {
43
44
if (someCondition) {
@@ -75,6 +76,7 @@ Examples of **correct** code for this rule:
75
76
76
77
``` js
77
78
/* eslint no-promise-executor-return: "error"*/
79
+ /* eslint-env es6*/
78
80
79
81
// Turn return inline into two lines
80
82
new Promise ((resolve , reject ) => {
@@ -123,6 +125,7 @@ Examples of **correct** code for this rule with the `{ "allowVoid": true }` opti
123
125
124
126
``` js
125
127
/* eslint no-promise-executor-return: ["error", { allowVoid: true }]*/
128
+ /* eslint-env es6*/
126
129
127
130
new Promise ((resolve , reject ) => {
128
131
if (someCondition) {
You can’t perform that action at this time.
0 commit comments