mirror of
https://github.com/FreshRSS/Extensions.git
synced 2026-11-04 10:48:40 +00:00
* Migrate markdownlint-cli to markdownlint-cli2 (single config file) Consolidate the Markdown lint configuration (.markdownlint.json rules, .markdownlintignore excludes, and the '**/*.md' npm-script glob) into a single .markdownlint-cli2.jsonc (config + globs + ignores), and remove the two old files. Script names are unchanged, so the compound test/fix scripts and the CI step (npm run --silent markdownlint) need no change. For consistency with FreshRSS/FreshRSS#8987. * Apply review feedback from FreshRSS/FreshRSS#8987 - Reduce obvious comments in .markdownlint-cli2.jsonc (keep only the non-obvious note on globs) - Add JSONC to .editorconfig ([*.json] -> [*.{json,jsonc}])
34 lines
654 B
JSON
34 lines
654 B
JSON
{
|
|
"config": {
|
|
"default": true,
|
|
"blanks-around-fences": false,
|
|
"blanks-around-lists": false,
|
|
"first-line-heading": false,
|
|
"line-length": false,
|
|
"no-blanks-blockquote": false,
|
|
"no-hard-tabs": false,
|
|
"no-inline-html": {
|
|
"allowed_elements": ["br", "img", "kbd", "details", "summary"]
|
|
},
|
|
"no-multiple-blanks": {
|
|
"maximum": 2
|
|
},
|
|
"no-trailing-spaces": true,
|
|
"ul-indent": false,
|
|
"ul-style": {
|
|
"style": "consistent"
|
|
}
|
|
},
|
|
// Markdown files to lint (previously the '**/*.md' CLI argument)
|
|
"globs": [
|
|
"**/*.md"
|
|
],
|
|
"ignores": [
|
|
"**/node_modules/**",
|
|
"symbolic/**",
|
|
"third-party/**",
|
|
"tmp/**",
|
|
"vendor/**"
|
|
]
|
|
}
|