mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
16 lines
487 B
Text
16 lines
487 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"^[\"']\.\./[^/\"']+[\"']$" },
|
|
register_diagnostic(span=$stmt, message="App-server subfolders must not import sibling root modules; move the dependency into a responsibility subfolder.", severity="error")
|
|
}
|