mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Remove yaml package as a (dev) dependency.
This commit is contained in:
parent
58ad0a3543
commit
ac47b5772f
2 changed files with 6 additions and 7 deletions
|
@ -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",
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue