mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Incorporate markdownlint-rule-extended-ascii into tests, linting, and documentation.
This commit is contained in:
parent
4a1b3550d3
commit
22f1f064fd
5 changed files with 54 additions and 15 deletions
|
|
@ -343,9 +343,12 @@ test("customRulesNpmPackage", (t) => new Promise((resolve) => {
|
|||
// eslint-disable-next-line jsdoc/valid-types
|
||||
/** @type import("../lib/markdownlint").Options */
|
||||
const options = {
|
||||
"customRules": [ require("./rules/npm") ],
|
||||
"customRules": [
|
||||
require("./rules/npm"),
|
||||
require("markdownlint-rule-extended-ascii")
|
||||
],
|
||||
"strings": {
|
||||
"string": "# Text\n\n---\n\nText\n"
|
||||
"string": "# Text\n\n---\n\nText ✅\n"
|
||||
},
|
||||
"resultVersion": 0
|
||||
};
|
||||
|
|
@ -353,6 +356,7 @@ test("customRulesNpmPackage", (t) => new Promise((resolve) => {
|
|||
t.falsy(err);
|
||||
const expectedResult = {};
|
||||
expectedResult.string = {
|
||||
"extended-ascii": [ 5 ],
|
||||
"sample-rule": [ 3 ]
|
||||
};
|
||||
// @ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue