Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/arrays/no-implicit-array-creation

In the code-quality set. Report only. Intent: suspicious. Upstream gates: strictRules.disallowedImplicitArrayCreation.

What it does

Disallows implicit array creation: appending to or writing an offset of an undefined or null variable.

Configuration

[lint.rules]
"arrays/no-implicit-array-creation" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/arrays rules · Edit this page

Last updated on

Was this page helpful?