webhook/node_modules/eslint-plugin-github/lib/rules/no-blur.js
2020-08-26 09:57:08 +10:00

11 lines
305 B
JavaScript

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.schema = []