Skip to content

Commit 7ee65f3

Browse files
author
Marcos Cáceres
committed
fix(w3c/defaults): expose conf.definitionMap to w3c specs
closes #2019
1 parent 274c808 commit 7ee65f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/w3c/defaults.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
export const name = "w3c/defaults";
55
import { rule as checkInternalSlots } from "../core/linter-rules/check-internal-slots";
66
import { rule as checkPunctuation } from "../core/linter-rules/check-punctuation";
7+
import { definitionMap } from "../core/dfn-map";
78
import linter from "../core/linter";
89
import { rule as localRefsExist } from "../core/linter-rules/local-refs-exist";
910
import { rule as noHeadinglessSectionsRule } from "../core/linter-rules/no-headingless-sections";
@@ -106,4 +107,9 @@ export function run(conf) {
106107
});
107108
//computed properties
108109
Object.assign(conf, computeProps(conf));
110+
111+
// TODO: eventually, we want to remove this.
112+
// It's here for legacy support of json-ld specs
113+
// see https://github.com/w3c/respec/issues/2019
114+
Object.assign(conf, { definitionMap });
109115
}

0 commit comments

Comments
 (0)