mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Update checked-in dependencies
This commit is contained in:
8
node_modules/eslint-plugin-github/lib/rules/array-foreach.js
generated
vendored
8
node_modules/eslint-plugin-github/lib/rules/array-foreach.js
generated
vendored
@@ -1,6 +1,10 @@
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {},
|
||||
type: 'suggestion',
|
||||
docs: {
|
||||
description: 'enforce `for..of` loops over `Array.forEach`',
|
||||
url: require('../url')(module)
|
||||
},
|
||||
schema: []
|
||||
},
|
||||
|
||||
@@ -8,7 +12,7 @@ module.exports = {
|
||||
return {
|
||||
CallExpression(node) {
|
||||
if (node.callee.property && node.callee.property.name === 'forEach') {
|
||||
context.report(node, 'Prefer for...of instead of Array.forEach')
|
||||
context.report({node, message: 'Prefer for...of instead of Array.forEach'})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user