murashit_codex-panel/scripts/lint/no-unsafe-iterator-value.grit

5 lines
222 B
Text

language js
`$iterator.next().value` as $stmt where {
register_diagnostic(span=$stmt, message="Avoid reading iterator.next().value directly; use for...of or inspect the typed IteratorResult first.", severity="error")
}