github-pages-deploy-action/node_modules/eslint-plugin-github/lib/rules/no-blur.js

12 lines
305 B
JavaScript
Raw Normal View History

2020-03-31 20:42:07 +08:00
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 = []