Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
10
node_modules/eslint-plugin-github/lib/rules/no-inner-html.js
generated
vendored
10
node_modules/eslint-plugin-github/lib/rules/no-inner-html.js
generated
vendored
|
|
@ -3,9 +3,9 @@ module.exports = {
|
|||
type: 'problem',
|
||||
docs: {
|
||||
description: 'disallow `Element.prototype.innerHTML` in favor of `Element.prototype.textContent`',
|
||||
url: require('../url')(module)
|
||||
url: require('../url')(module),
|
||||
},
|
||||
schema: []
|
||||
schema: [],
|
||||
},
|
||||
|
||||
create(context) {
|
||||
|
|
@ -13,9 +13,9 @@ module.exports = {
|
|||
'MemberExpression[property.name=innerHTML]': function (node) {
|
||||
context.report({
|
||||
node: node.property,
|
||||
message: 'Using innerHTML poses a potential security risk and should not be used. Prefer using textContent.'
|
||||
message: 'Using innerHTML poses a potential security risk and should not be used. Prefer using textContent.',
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue