We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ca7a78 commit cfdbb79Copy full SHA for cfdbb79
tools/doc/common.js
@@ -1,7 +1,6 @@
1
'use strict';
2
3
-const yaml =
4
- require(`${__dirname}/../node_modules/eslint/node_modules/js-yaml`);
+const yaml = require('js-yaml');
5
6
function isYAMLBlock(text) {
7
return /^<!-- YAML/.test(text);
@@ -20,8 +19,8 @@ function extractAndParseYAML(text) {
20
19
.replace(/^<!-- YAML/, '')
21
.replace(/-->$/, '');
22
23
- // js-yaml.safeLoad() throws on error.
24
- const meta = yaml.safeLoad(text);
+ // js-yaml.load() throws on error.
+ const meta = yaml.load(text);
25
26
if (meta.added) {
27
// Since semver-minors can trickle down to previous major versions,
0 commit comments