mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Create strict JSON Schema for configuration (standalone for ease of use) and corresponding strict TypeScript type (via extends for conciseness) (fixes #1248).
This commit is contained in:
parent
bbca3ad209
commit
9c8e7156e1
10 changed files with 3070 additions and 1207 deletions
|
@ -164,3 +164,20 @@ markdownlint(options, assertLintResultsCallback);
|
|||
(async () => {
|
||||
assertLintResultsCallback(null, await markdownlint.promises.markdownlint(options));
|
||||
})();
|
||||
|
||||
const configuration: markdownlint.Configuration = {
|
||||
"custom-rule": true,
|
||||
"no-hard-tabs": false,
|
||||
"heading-style": {
|
||||
"style": "consistent"
|
||||
}
|
||||
};
|
||||
assert(configuration);
|
||||
const configurationStrict: markdownlint.ConfigurationStrict = {
|
||||
// "custom-rule": true,
|
||||
"no-hard-tabs": false,
|
||||
"heading-style": {
|
||||
"style": "consistent"
|
||||
}
|
||||
};
|
||||
assert(configurationStrict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue