Skip to content

Commit

Permalink
Update dependency: markdownlint-cli2 to 0.10.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Sep 17, 2023
1 parent 4d4b722 commit cbcee87
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 110 deletions.
212 changes: 112 additions & 100 deletions markdownlint-cli2-config-schema.json
Original file line number Diff line number Diff line change
@@ -1,102 +1,114 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "markdownlint-cli2 configuration schema",
"type": "object",
"properties": {
"config": {
"$ref": "./markdownlint-config-schema.json"
},
"customRules": {
"description": "Module names or paths of custom rules to load and use when linting",
"type": "array",
"default": [],
"items": {
"description": "Module name or path of a custom rule",
"type": "string",
"minLength": 1
}
},
"fix": {
"description": "Whether to enable fixing of linting errors reported by rules that emit fix information",
"type": "boolean",
"default": false
},
"frontMatter": {
"description": "Regular expression used to match and ignore any front matter at the beginning of a document",
"type": "string",
"minLength": 1,
"default": ""
},
"globs": {
"description": "Glob expressions to include when linting (only valid at the root)",
"type": "array",
"default": [],
"items": {
"description": "Glob expression of files to lint",
"type": "string",
"minLength": 1
}
},
"ignores": {
"description": "Glob expressions to ignore when linting",
"type": "array",
"default": [],
"items": {
"description": "Glob expression of files to ignore",
"type": "string",
"minLength": 1
}
},
"markdownItPlugins": {
"description": "markdown-it plugins to load and use when linting",
"type": "array",
"default": [],
"items": {
"description": "Name or path of a markdown-it plugin followed by parameters",
"type": "array",
"items": [
{
"description": "Name or path of a markdown-it plugin",
"type": "string",
"minLength": 1
},
{
"description": "Parameter(s) to pass to the markdown-it plugin"
}
],
"minItems": 1
}
},
"noInlineConfig": {
"description": "Whether to disable support of HTML comments within Markdown content",
"type": "boolean",
"default": false
},
"noProgress": {
"description": "Whether to disable the display of progress on stdout (only valid at the root)",
"type": "boolean",
"default": false
},
"outputFormatters": {
"description": "Output formatters to load and use to customize markdownlint-cli2 output (only valid at the root)",
"type": "array",
"default": [],
"items": {
"description": "Name or path of an output formatter followed by parameters",
"type": "array",
"items": [
{
"description": "Name or path of an output formatter",
"type": "string",
"minLength": 1
},
{
"description": "Parameter(s) to pass to the output formatter"
}
],
"minItems": 1
}
}
},
"additionalProperties": false
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "markdownlint-cli2 configuration schema",
"type": "object",
"properties": {
"$schema": {
"description": "JSON Schema URI (used by some editors)",
"type": "string",
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-cli2-config-schema.json"
},
"config": {
"description": "markdownlint-cli2 configuration schema",
"$ref": "./markdownlint-config-schema.json",
"default": {}
},
"customRules": {
"description": "Module names or paths of custom rules to load and use when linting",
"type": "array",
"default": [],
"items": {
"description": "Module name or path of a custom rule",
"type": "string",
"minLength": 1
}
},
"fix": {
"description": "Whether to enable fixing of linting errors reported by rules that emit fix information",
"type": "boolean",
"default": false
},
"frontMatter": {
"description": "Regular expression used to match and ignore any front matter at the beginning of a document",
"type": "string",
"minLength": 1,
"default": ""
},
"globs": {
"description": "Glob expressions to include when linting (only valid at the root)",
"type": "array",
"default": [],
"items": {
"description": "Glob expression of files to lint",
"type": "string",
"minLength": 1
}
},
"ignores": {
"description": "Glob expressions to ignore when linting",
"type": "array",
"default": [],
"items": {
"description": "Glob expression of files to ignore",
"type": "string",
"minLength": 1
}
},
"markdownItPlugins": {
"description": "markdown-it plugins to load and use when linting",
"type": "array",
"default": [],
"items": {
"description": "Name or path of a markdown-it plugin followed by parameters",
"type": "array",
"items": [
{
"description": "Name or path of a markdown-it plugin",
"type": "string",
"minLength": 1
},
{
"description": "Parameter(s) to pass to the markdown-it plugin"
}
],
"minItems": 1
}
},
"noInlineConfig": {
"description": "Whether to disable support of HTML comments within Markdown content",
"type": "boolean",
"default": false
},
"noProgress": {
"description": "Whether to disable the display of progress on stdout (only valid at the root)",
"type": "boolean",
"default": false
},
"outputFormatters": {
"description": "Output formatters to load and use to customize markdownlint-cli2 output (only valid at the root)",
"type": "array",
"default": [],
"items": {
"description": "Name or path of an output formatter followed by parameters",
"type": "array",
"items": [
{
"description": "Name or path of an output formatter",
"type": "string",
"minLength": 1
},
{
"description": "Parameter(s) to pass to the output formatter"
}
],
"minItems": 1
}
},
"showFound": {
"description": "Whether to show the list of found files on stdout (only valid at the root)",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
30 changes: 26 additions & 4 deletions markdownlint-config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1714,13 +1714,35 @@
},
"MD052": {
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
"type": "boolean",
"default": true
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"reference-links-images": {
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
"type": "boolean",
"default": true
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"MD053": {
"description": "MD053/link-image-reference-definitions - Link and image reference definitions should be needed",
Expand Down
34 changes: 28 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"docker-npm-install": "docker run --rm --tty --name npm-install --volume $PWD:/home/workdir --workdir /home/workdir --user node node:latest npm install",
"docker-npm-run-upgrade": "docker run --rm --tty --name npm-run-upgrade --volume $PWD:/home/workdir --workdir /home/workdir --user node node:latest npm run upgrade",
"lint": "eslint --ignore-pattern bundle.js --ignore-pattern bundle.web.js *.js && markdownlint-cli2 *.md",
"schema": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json . --flat && node expand-config-schema.js && node generate-config-schema.js",
"schema": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json . --flat && node expand-config-schema.js && node generate-config-schema.js && cpy ./node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json . --flat",
"test": "npm run lint && npm run compile && npm run schema && git diff --exit-code",
"upgrade": "npx --yes npm-check-updates --upgrade"
},
Expand All @@ -42,7 +42,7 @@
"ignore": "5.2.4",
"js-yaml": "4.1.0",
"jsonc-parser": "3.2.0",
"markdownlint-cli2": "0.9.2",
"markdownlint-cli2": "0.10.0",
"minimatch": "9.0.3"
},
"devDependencies": {
Expand Down Expand Up @@ -1953,13 +1953,35 @@
},
"MD052": {
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
"type": "boolean",
"default": true
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"reference-links-images": {
"description": "MD052/reference-links-images - Reference links and images should use a label that is defined",
"type": "boolean",
"default": true
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"shortcut_syntax": {
"description": "Include shortcut syntax",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"MD053": {
"description": "MD053/link-image-reference-definitions - Link and image reference definitions should be needed",
Expand Down

0 comments on commit cbcee87

Please sign in to comment.