1 # disallow deleting variables (no-delete-var)
3 The purpose of the `delete` operator is to remove a property from an object. Using the `delete` operator on a variable might lead to unexpected behavior.
7 This rule disallows the use of the `delete` operator on variables.
9 If ESLint parses code in strict mode, the parser (instead of this rule) reports the error.
11 Examples of **incorrect** code for this rule:
14 /*eslint no-delete-var: "error"*/