ESLint rules for validating @context annotations and related freshness checks.
npm install -D @recallnet/codecontext-eslint-plugin @recallnet/codecontext-parser eslintimport codecontext from "@recallnet/codecontext-eslint-plugin";
export default [codecontext.configs.recommended];| Rule | Default | Description |
|---|---|---|
context-hierarchy |
error | Type/subtype combinations must be valid |
valid-context-refs |
error | Local {@link file:...} targets must resolve to existing files |
require-context-for-complex |
warn | Complex functions (cyclomatic > 5) should have @context |
no-stale-context |
error | Verification dates too old, or code changed without date bump |