mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add getVersion function to exports for easy access by tooling (ex: CLI).
This commit is contained in:
parent
bd50a15a96
commit
a971361cf2
4 changed files with 28 additions and 1 deletions
|
@ -5,6 +5,9 @@ import markdownlint from "../..";
|
|||
const assert = require("assert");
|
||||
const markdownlintJsonPath = "../../.markdownlint.json";
|
||||
|
||||
const version: string = markdownlint.getVersion();
|
||||
assert(/^\d+\.\d+\.\d+$/.test(version));
|
||||
|
||||
function assertConfiguration(config: markdownlint.Configuration) {
|
||||
assert(!!config);
|
||||
assert.equal(config["line-length"], false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue