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

lint/performance/require-qualified-native-constant

Not in any set. Unsafe fix: it can change behaviour.

What it does

Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.

Configuration

[lint.rules]
"performance/require-qualified-native-constant" = "error"

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

Options

Name Type Allowed values Default Upstream name
exclude list Any ["null", "false", "true"] exclude
fix-built-in bool Any true fix_built_in
include list Any [] include
scope enum all, namespaced "all" scope
strict bool Any true strict

Replaces

More lint/performance rules · Edit this page

Last updated on

Was this page helpful?