Remove yaml package as a (dev) dependency.

This commit is contained in:
David Anson 2024-02-17 15:33:27 -08:00
parent 58ad0a3543
commit ac47b5772f
2 changed files with 6 additions and 7 deletions

View file

@ -95,8 +95,7 @@
"toml": "3.0.0",
"typescript": "5.3.3",
"webpack": "5.90.2",
"webpack-cli": "5.1.4",
"yaml": "2.3.4"
"webpack-cli": "5.1.4"
},
"keywords": [
"markdown",

View file

@ -4,7 +4,7 @@
const fs = require("node:fs");
const path = require("node:path");
const yaml = require("yaml");
const yaml = require("js-yaml");
const configSchema = require("./markdownlint-config-schema.json");
const configExample = {};
@ -41,12 +41,12 @@ fs.writeFileSync(
"utf8"
);
const configStringYaml = yaml.stringify(
const configStringYaml = yaml.dump(
configExample,
{
"lineWidth": 0,
"defaultStringType": "QUOTE_DOUBLE",
"defaultKeyType": "PLAIN"
"forceQuotes": true,
"lineWidth": -1,
"quotingType": "\""
}
);
fs.writeFileSync(