no-iterator
Configuration
rslint.config.ts
Rule Details
Disallow the use of the __iterator__ property.
The __iterator__ property was a SpiderMonkey extension to JavaScript that could be used to create custom iterators compatible with for...in and for each...in loops. However, this property is now obsolete, so it should not be used. The standard Symbol.iterator property should be used instead to define the iteration protocol.
Examples of incorrect code for this rule:
Examples of correct code for this rule: