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

format/imports/global-namespace

Not in any preset. Safe fix.

What it does

Imports or fully qualifies global classes/functions/constants.

Configuration

[format.rules]
"imports/global-namespace" = true

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

Options

Name Type Allowed values Default Upstream name
import-classes bool Any true import_classes
import-constants bool Any "ignore" import_constants
import-functions bool Any "ignore" import_functions

Replaces

More format/imports rules · Edit this page

Last updated on

Was this page helpful?