no-iterator
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-iterator": "error",
},
},
];Foo.prototype.__iterator__ = function() {
return new FooIterator(this);
};
foo.__iterator__ = function () {};
foo["__iterator__"] = function () {};const __iterator__ = foo; // Not using the `__iterator__` property.Examples from the ESLint documentation.
no-iterator
eslint
export default [
{
rules: {
"no-iterator": "error",
},
},
];no-iterator
eslint plugin · correctness
{
"rules": {
"no-iterator": "error"
}
}Biome does not have this rule.
Disallow unused expressions
Disallow comparisons where both sides are exactly the same
Disallow octal escape sequences in string literals
Disallow the use of eval()-like methods