var REGEX = require('../regex');

module.exports = function(context) {
	return {
		MemberExpression: function(node) {
			var propertyValue = node.property.value;
			var propertyType = node.property.type;

			if (propertyType === 'Literal' && !REGEX.STUBS.test(propertyValue)) {
				var dotNotation = require('../../node_modules/eslint/lib/rules/dot-notation');

				dotNotation(context).MemberExpression(node);
			}
		}
	};
};
var REGEX = require('../regex');

module.exports = function(context) {
	return {
		MemberExpression: function(node) {
			var propertyValue = node.property.value;
			var propertyType = node.property.type;

			if (propertyType === 'Literal' && !REGEX.STUBS.test(propertyValue)) {
				var dotNotation = require('eslint/lib/rules/dot-notation');

				dotNotation.create(context).MemberExpression(node);
			}
		}
	};
};
Update usage of eslints dotnotation rule
Update usage of eslints dotnotation rule
