Function: applyDirectives()
ts
function applyDirectives(diagnostics, source): Diagnostic[];Defined in: packages/providers/src/directives.ts:81
Drop diagnostics suppressed by directive comments in source, and add a cssdoc-directive diagnostic for any cssdoc-expect-error that matched nothing.
Parameters
diagnostics
The diagnostics to filter (author-side, with CSS spans).
source
string
The CSS the diagnostics came from (the same text passed to the linter).
Returns
The surviving diagnostics.