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", "toml": "3.0.0",
"typescript": "5.3.3", "typescript": "5.3.3",
"webpack": "5.90.2", "webpack": "5.90.2",
"webpack-cli": "5.1.4", "webpack-cli": "5.1.4"
"yaml": "2.3.4"
}, },
"keywords": [ "keywords": [
"markdown", "markdown",

View file

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