Files
radicle-explorer/shared/core/eslint.config.js
T
Rūdolfs Ošiņš ee80f7d6f4 Add shared core package and query cache
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.
2026-11-20 19:32:16 +01:00

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.",
},
],
},
],
},
},
];