diff --git a/package.json b/package.json index 8a007efe..ea5b7758 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/schema/build-config-example.js b/schema/build-config-example.js index 5a6907fe..bc75f7e1 100644 --- a/schema/build-config-example.js +++ b/schema/build-config-example.js @@ -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(