2 * @fileoverview Rule to flag when deleting variables
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 module.exports = function(context) {
16 "UnaryExpression": function(node) {
17 if (node.operator === "delete" && node.argument.type === "Identifier") {
18 context.report(node, "Variables should not be deleted.");