madr-lint 0.4.2 → 0.4.3

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 CHANGED
@@ -555,7 +555,16 @@ interface SupersedesBidirectionalOptions extends Record<string, unknown> {
555
555
  declare const rule: ProjectRule<SupersedesBidirectionalOptions>;
556
556
 
557
557
  declare namespace index {
558
- export { rule$7 as dateIso8601, rule$6 as filenameFormat, rule$5 as noBrokenLinks, rule$4 as noDuplicateNumbering, rule$3 as noNumberingGap, rule$2 as requiredSections, rule$1 as statusEnum, rule as supersedesBidirectional };
558
+ export {
559
+ rule$7 as dateIso8601,
560
+ rule$6 as filenameFormat,
561
+ rule$5 as noBrokenLinks,
562
+ rule$4 as noDuplicateNumbering,
563
+ rule$3 as noNumberingGap,
564
+ rule$2 as requiredSections,
565
+ rule$1 as statusEnum,
566
+ rule as supersedesBidirectional,
567
+ };
559
568
  }
560
569
 
561
570
  declare const recommended: Record<string, RuleSeverity>;
@@ -651,4 +660,5 @@ interface MadrLintConfig {
651
660
  */
652
661
  declare function defineConfig(config: MadrLintConfig): MadrLintConfig;
653
662
 
654
- export { type AnyRule, BASELINE_VERSION, type Baseline, type BaselineApplyResult, type Diagnostic, type FileContext, type FixFileResult, type FixFn, type Fixer, INTERNAL_ERROR_RULE_NAME, MAX_FIX_PASSES, type MadrLintConfig, type MadrVersion, type MdastNode, type MdastNodeType, type ParsedFile, type ProjectFile, type ProjectRule, type ProjectRuleContext, type Rule, type RuleContext, type RuleListeners, type RuleMeta, RuleOptionsError, type RuleSeverity, type RunRuleOptions, type Severity, type TextEdit, applyBaseline, applyEdits, applyEditsCounted, baselinePath, buildBaseline, buildProjectFile, collectFixes, collectProjectFixes, defineConfig, extractListMetadata, fixFileContent, frontmatterOffset, isProjectRule, loadBaseline, makeFixer, parseFile, recommended, index as rules, runRule, runRulesOnFile, runRulesOnProject, serializeBaseline, unifiedDiff, writeBaseline };
663
+ export { BASELINE_VERSION, INTERNAL_ERROR_RULE_NAME, MAX_FIX_PASSES, RuleOptionsError, applyBaseline, applyEdits, applyEditsCounted, baselinePath, buildBaseline, buildProjectFile, collectFixes, collectProjectFixes, defineConfig, extractListMetadata, fixFileContent, frontmatterOffset, isProjectRule, loadBaseline, makeFixer, parseFile, recommended, index as rules, runRule, runRulesOnFile, runRulesOnProject, serializeBaseline, unifiedDiff, writeBaseline };
664
+ export type { AnyRule, Baseline, BaselineApplyResult, Diagnostic, FileContext, FixFileResult, FixFn, Fixer, MadrLintConfig, MadrVersion, MdastNode, MdastNodeType, ParsedFile, ProjectFile, ProjectRule, ProjectRuleContext, Rule, RuleContext, RuleListeners, RuleMeta, RuleSeverity, RunRuleOptions, Severity, TextEdit };
package/dist/index.js CHANGED
@@ -15,7 +15,15 @@ function nullProtoMap() {
15
15
  }
16
16
 
17
17
  // src/core/parser.ts
18
- var GRAY_MATTER_OPTIONS = Object.freeze({});
18
+ var GRAY_MATTER_OPTIONS = Object.freeze({
19
+ engines: {
20
+ javascript: () => {
21
+ throw new Error(
22
+ "JavaScript frontmatter (---js) is not supported. Use YAML frontmatter."
23
+ );
24
+ }
25
+ }
26
+ });
19
27
  function frontmatterOffset(content) {
20
28
  return content.length - grayMatter(content, GRAY_MATTER_OPTIONS).content.length;
21
29
  }