mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
18 lines
555 B
Text
18 lines
555 B
Text
language js
|
|
|
|
private pattern js_module_reference() {
|
|
or {
|
|
JsImport(),
|
|
JsExportNamedFromClause(),
|
|
JsExportFromClause(),
|
|
TsImportType(),
|
|
JsImportCallExpression()
|
|
}
|
|
}
|
|
|
|
js_module_reference() as $stmt where {
|
|
$stmt <: contains `$source` where {
|
|
$source <: r"^[\"'](?:(?:\.\./)+(?:host|panel|presentation|ui)|src/features/chat/(?:host|panel|presentation|ui))(?:/.*)?[\"']$"
|
|
},
|
|
register_diagnostic(span=$stmt, message="Chat app-server adapters must not import chat host, panel, presentation, or UI layers.", severity="error")
|
|
}
|