2 * @fileoverview Rule to check for properties whose identifier ends with the string Sync
3 * @author Matt DuVall<http://mattduvall.com/>
10 //------------------------------------------------------------------------------
12 //------------------------------------------------------------------------------
14 module.exports = function(context) {
18 "MemberExpression": function(node) {
19 var propertyName = node.property.name,
20 syncRegex = /.*Sync$/;
22 if (syncRegex.exec(propertyName) !== null) {
23 context.report(node, "Unexpected sync method: '" + propertyName + "'.");