@templatical/quality 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -0
- package/dist/index.js +194 -185
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -261,6 +261,24 @@ export declare interface LintPatchContext {
|
|
|
261
261
|
|
|
262
262
|
export declare function lintStructure(content: TemplateContent, options?: LintOptions): LintIssue[];
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Run every linter in the package — accessibility, structure, and links —
|
|
266
|
+
* against `content` and return the merged issue list.
|
|
267
|
+
*
|
|
268
|
+
* This is the single entry point callers should prefer. CI guards, the
|
|
269
|
+
* editor's live linter, and headless consumers all funnel through here, so
|
|
270
|
+
* a new linter category is picked up everywhere by registering it in this
|
|
271
|
+
* one fan-out — no consumer has to learn about the new function.
|
|
272
|
+
*
|
|
273
|
+
* Per-category options (`options.accessibility`, `options.structure`,
|
|
274
|
+
* `options.links`) and the global `options.disabled` flag are forwarded
|
|
275
|
+
* unchanged; each sub-linter already short-circuits when its category is
|
|
276
|
+
* `false`, so the per-tool calls below are cheap no-ops when disabled.
|
|
277
|
+
*
|
|
278
|
+
* Issue order is stable: accessibility first, then structure, then links.
|
|
279
|
+
*/
|
|
280
|
+
export declare function lintTemplate(content: TemplateContent, options?: LintOptions): LintIssue[];
|
|
281
|
+
|
|
264
282
|
export declare interface LintThresholds {
|
|
265
283
|
altMaxLength: number;
|
|
266
284
|
minFontSize: number;
|