Skip to content

Commit 0f667ae

Browse files
committed
add explanation comment
1 parent 6b4a585 commit 0f667ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ module.exports = {
158158
'unicorn/prefer-reflect-apply': 'error',
159159
'unicorn/prefer-string-trim-start-end': 'error',
160160
'unicorn/prefer-type-error': 'error',
161+
// Discourage `.forEach` because it can lead to accidental, incorrect use of async callbacks.
161162
'unicorn/no-array-for-each': 'error',
162163
'security-node/detect-child-process': 'error',
163164

0 commit comments

Comments
 (0)