biomejs/biome

๐Ÿ’… [useNamingConvention] Ignore declarations inside an external TypeScript module

Opened this issue ยท 0 comments

Rule name

lint/style/useNamingConvention

Description

The documentation says that "declarations inside an external TypeScript module" should be ignored by useNamingConvention (as described at the bottom of the relevant docs section), but the implementation actually complains about them.

Example:

declare module "myExternalModule" {
  export interface my_INTERFACE {}
}

Expected Result

No Errors are reported

Actual Result

Lint is generated for my_INTERFACE.

Playground link

https://biomejs.dev/playground/?lintRules=all&code=ZABlAGMAbABhAHIAZQAgAG0AbwBkAHUAbABlACAAIgBtAHkARQB4AHQAZQByAG4AYQBsAE0AbwBkAHUAbABlACIAIAB7AAoAIAAgAGUAeABwAG8AcgB0ACAAaQBuAHQAZQByAGYAYQBjAGUAIABtAHkAXwBJAE4AVABFAFIARgBBAEMARQAgAHsAfQAKAH0ACgA%3D

Environment information

https://github.com/biomejs/biome/actions/runs/11854065273/job/33035446404?pr=4542

Tangentially related issues:

Code of Conduct

  • I agree to follow Biome's Code of Conduct