no-array-delete
Configuration
rslint.config.ts
Rule Details
Disallow using the delete operator on array values. Using delete on an array element sets it to undefined and leaves a hole in the array without changing its length. This is almost always a mistake -- Array.prototype.splice() should be used instead to remove elements.
The rule uses type information to detect when the delete target is an array or tuple type.
Examples of incorrect code for this rule:
Examples of correct code for this rule: