Skip to content

script-utils/linters/eslint-agnostic-core-boundary

no-restricted-imports pattern entries that enforce the agnostic-core boundary: the Obsidian-runtime-agnostic top-level src/*.ts modules must not import the Obsidian layer (src/obsidian/**).

Exported as a standalone constant so the pattern can be unit-tested independently of the larger declarative config, and so the owning project can apply it scoped to its top-level source files.

InterfaceDescription
NoRestrictedImportPatternEntryA single no-restricted-imports pattern entry pairing a group of banned import specifiers with a human-readable message explaining why they are banned.
VariableDescription
agnosticCoreBoundaryNoRestrictedImportPatternsno-restricted-imports pattern entries banning relative imports into the obsidian layer. Intended to be applied (via a file-scoped ESLint config) to the agnostic top-level src/*.ts modules, excluding the generated barrel and test files.