Skip to content

Commit

Permalink
no-array-for-each: Better error message (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Apr 30, 2021
1 parent 2c3d291 commit 2e82dc8
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion rules/no-array-for-each.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const referenceIdentifierSelector = require('./utils/reference-identifier-select

const MESSAGE_ID = 'no-array-for-each';
const messages = {
[MESSAGE_ID]: 'Do not use `Array#forEach(…)`.'
[MESSAGE_ID]: 'Use `for…of` instead of `Array#forEach(…)`.'
};

const arrayForEachCallSelector = methodSelector({
Expand Down
Loading

0 comments on commit 2e82dc8

Please sign in to comment.