lib/rules/no-browser-pause.js
'use strict' /** * @fileoverview Check if browser.pause() is left in the codebase (no-browser-pause) * @author David Raynes */ Similar blocks of code found in 4 locations. Consider refactoring.module.exports = { meta: { schema: [] }, create: function (context) { return { 'CallExpression': function (node) { var object = node.callee.object var property = node.callee.property if (object && property && object.name === 'browser' && property.name === 'pause') { context.report({ node: property, message: 'Unexpected browser.pause()' }) } } } }}