mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Core holds the keys of the data both apps read and maps a node's ref updates to the keys they affect. The query cache wraps TanStack Query for runes, as decided in ADRs 4 and 5.
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
import js from "@eslint/js";
|
|
import ts from "typescript-eslint";
|
|
|
|
// Core is plain domain logic that both apps and shared/ui build on. Its
|
|
// tsconfig leaves out DOM and Node types; this keeps out the packages that
|
|
// would tie it to a framework, an app or a transport.
|
|
export default [
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
{
|
|
rules: {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
patterns: [
|
|
{
|
|
group: ["svelte", "svelte/*"],
|
|
message: "Core has no Svelte dependencies.",
|
|
},
|
|
{
|
|
group: [
|
|
"@tauri-apps/*",
|
|
"@bindings/*",
|
|
"@app/*",
|
|
"@http-client/*",
|
|
],
|
|
message: "Core doesn't depend on either app.",
|
|
},
|
|
{
|
|
group: ["@radicle-gui/ui", "@radicle-gui/ui/*"],
|
|
message: "shared/ui depends on core, never the other way round.",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|