π `noEmptyInterface` may break global augmentation
kosmotema opened this issue Β· comments
Environment information
CLI:
Version: 1.8.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: windows
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: unset
JS_RUNTIME_VERSION: "v18.19.1"
JS_RUNTIME_NAME: "node"
NODE_PACKAGE_MANAGER: "pnpm/9.1.2"
Biome Configuration:
Status: Loaded successfully
Formatter disabled: false
Linter disabled: false
Organize imports disabled: false
VCS disabled: false
Linter:
JavaScript enabled: true
JSON enabled: true
CSS enabled: false
Recommended: true
All: false
Workspace:
Open Documents: 0
Rule name
suspicious/noEmptyInterface
Playground link
Expected result
Empty interfaces (which doesn't extend any other interface?) within the declare global
block should be ignored from converting them to a type, since the fix will break global augmentation
Code of Conduct
- I agree to follow Biome's Code of Conduct
In the past we enabled empty interface that extends a type in an ambient module (#959).
We could accept any empty interface in an ambient module.