mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
12 lines
305 B
JavaScript
12 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 = []
|