Skip to content

Commit 7960bb0

Browse files
ayushi-naphadeljharb
authored andcommitted
[eslint config] [base] make error message clearer
Fixes #2428.
1 parent 05aabc4 commit 7960bb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/eslint-config-airbnb-base/rules

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ module.exports = {
345345
},
346346
{
347347
selector: 'ForOfStatement',
348-
message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
348+
message: 'iterators/generators require regenerator-runtime in older browsers/engines, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
349349
},
350350
{
351351
selector: 'LabeledStatement',

0 commit comments

Comments
 (0)