Skip to content

Commit

Permalink
fix(w3c/defaults): expose conf.definitionMap to w3c specs (#2022)
Browse files Browse the repository at this point in the history
closes #2019
  • Loading branch information
marcoscaceres authored Jan 10, 2019
1 parent 3559a76 commit 7a4697a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/w3c/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
export const name = "w3c/defaults";
import { rule as checkInternalSlots } from "../core/linter-rules/check-internal-slots";
import { rule as checkPunctuation } from "../core/linter-rules/check-punctuation";
import { definitionMap } from "../core/dfn-map";
import linter from "../core/linter";
import { rule as localRefsExist } from "../core/linter-rules/local-refs-exist";
import { rule as noHeadinglessSectionsRule } from "../core/linter-rules/no-headingless-sections";
Expand Down Expand Up @@ -106,4 +107,9 @@ export function run(conf) {
});
//computed properties
Object.assign(conf, computeProps(conf));

// TODO: eventually, we want to remove this.
// It's here for legacy support of json-ld specs
// see https://github.com/w3c/respec/issues/2019
Object.assign(conf, { definitionMap });
}

0 comments on commit 7a4697a

Please sign in to comment.