Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
22
node_modules/eslint-plugin-github/lib/rules/no-blur.js
generated
vendored
22
node_modules/eslint-plugin-github/lib/rules/no-blur.js
generated
vendored
|
|
@ -1,11 +1,19 @@
|
|||
module.exports = function(context) {
|
||||
return {
|
||||
CallExpression(node) {
|
||||
if (node.callee.property && node.callee.property.name === 'blur') {
|
||||
context.report(node, 'Do not use element.blur(), instead restore the focus of a previous element.')
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
description: 'disallow usage of `Element.prototype.blur()`',
|
||||
url: require('../url')(module)
|
||||
},
|
||||
schema: []
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
CallExpression(node) {
|
||||
if (node.callee.property && node.callee.property.name === 'blur') {
|
||||
context.report({node, message: 'Do not use element.blur(), instead restore the focus of a previous element.'})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.schema = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue