123456789101112131415161718 |
- module.exports = function(context) {
- "use strict";
- return {
- "AssignmentExpression": function(node) {
- if (node.operator === '=') {
- if (node.left.property) {
- if (node.left.property.name == 'escapeMarkup') {
- if (node.right.value == false) {
- context.report(node, 'Markup escaping disabled.')
- }
- }
- }
- }
- }
- }
- }
|