Skip to content

Commit 84e0ad8

Browse files
committed
Provide more context in lint error message
1 parent 31cb269 commit 84e0ad8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/lint/no-async.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ module.exports = function(context) {
1616
if (node.async) {
1717
context.report(
1818
node,
19-
'async functions are not allowed outside of the test suite'
19+
'async functions are not allowed outside of the test suite ' +
20+
'because older versions of NodeJS do not support them ' +
21+
'without additional runtime dependencies. Instead, use explicit ' +
22+
'Promises.'
2023
);
2124
}
2225
},

0 commit comments

Comments
 (0)