Add proper-names rule to .markdownlint.json, update tests to use that file, fix resulting issues.

This commit is contained in:
David Anson 2022-03-10 06:07:07 +00:00 committed by GitHub
parent 062585e281
commit 4affefc68d
4 changed files with 16 additions and 15 deletions

View file

@ -83,10 +83,7 @@ test.cb("projectFilesNoInlineConfig", (t) => {
"doc/Prettier.md",
"helpers/README.md"
],
"config": {
"line-length": { "line_length": 150 },
"no-duplicate-heading": false
},
"config": require("../.markdownlint.json"),
"customRules": [ require("markdownlint-rule-github-internal-links") ],
"noInlineConfig": true
};
@ -109,7 +106,8 @@ test.cb("projectFilesInlineConfig", (t) => {
const options = {
"files": [ "doc/Rules.md" ],
"config": {
"no-inline-html": false
"no-inline-html": false,
...require("../.markdownlint.json")
}
};
markdownlint(options, function callback(err, actual) {