mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 00:00:20 +08:00
Update checked-in dependencies
This commit is contained in:
4
node_modules/eslint-plugin-github/lib/rules/no-innerText.js
generated
vendored
4
node_modules/eslint-plugin-github/lib/rules/no-innerText.js
generated
vendored
@@ -12,6 +12,10 @@ module.exports = {
|
||||
create(context) {
|
||||
return {
|
||||
MemberExpression(node) {
|
||||
// If the member expression is part of a call expression like `.innerText()` then it is not the same
|
||||
// as the `Element.innerText` property, and should not trigger a warning
|
||||
if (node.parent.type === 'CallExpression') return
|
||||
|
||||
if (node.property && node.property.name === 'innerText') {
|
||||
context.report({
|
||||
meta: {
|
||||
|
||||
Reference in New Issue
Block a user