mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-20 16:03:39 +00:00
14 lines
374 B
YAML
14 lines
374 B
YAML
id: no-import-alias
|
|
language: TypeScript
|
|
message: Do not alias value imports. For type name collisions, alias inside a dedicated `import type` statement.
|
|
severity: error
|
|
rule:
|
|
all:
|
|
- kind: import_specifier
|
|
- has:
|
|
field: alias
|
|
kind: identifier
|
|
- not:
|
|
inside:
|
|
pattern: import type { $$$SPECS } from "$MOD"
|
|
stopBy: end
|