mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1228363: Fixed eslint balanced-listeners rule to ignore listeners with no arguments. r=pbrosset
--HG-- extra : commitid : 4h60KEIjzn0 extra : rebase_source : 8c33f3639546c701b9e2d71d74af40cc1ea4c55b
This commit is contained in:
parent
bd090743b5
commit
70823931ab
@ -84,6 +84,10 @@ module.exports = function(context) {
|
||||
|
||||
return {
|
||||
CallExpression: function(node) {
|
||||
if (node.arguments.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node.callee.type === "MemberExpression") {
|
||||
var listenerMethodName = node.callee.property.name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user