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

lint/functions/no-unreachable-default-argument-value

In the code-quality set. Unsafe fix: it can change behaviour. Intent: correctness.

What it does

In function arguments there must not be arguments with default values before non-default ones.

Configuration

[lint.rules]
"functions/no-unreachable-default-argument-value" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/functions rules · Edit this page

Last updated on

Was this page helpful?