mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01: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
|
|
@ -18,13 +18,9 @@ const constants = require("../lib/constants");
|
|||
const rules = require("../lib/rules");
|
||||
const customRules = require("./rules/rules.js");
|
||||
const configSchema = require("../schema/markdownlint-config-schema.json");
|
||||
const configSchemaStrict = require("../schema/markdownlint-config-schema-strict.json");
|
||||
|
||||
const deprecatedRuleNames = new Set(constants.deprecatedRuleNames);
|
||||
const configSchemaStrict = {
|
||||
...configSchema,
|
||||
"$id": `${configSchema.$id}-strict`,
|
||||
"additionalProperties": false
|
||||
};
|
||||
const ajvOptions = {
|
||||
"allowUnionTypes": true
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue