mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-20 07:50:12 +01:00
Update all rules to better handle wrongly-typed configuration parameters.
This commit is contained in:
parent
26ad0550ec
commit
3238ed4249
25 changed files with 134 additions and 39 deletions
|
|
@ -12,9 +12,7 @@ module.exports = {
|
|||
"tags": [ "whitespace" ],
|
||||
"function": function MD009(params, onError) {
|
||||
let brSpaces = params.config.br_spaces;
|
||||
if (brSpaces === undefined) {
|
||||
brSpaces = 2;
|
||||
}
|
||||
brSpaces = Number((brSpaces === undefined) ? 2 : brSpaces);
|
||||
const listItemEmptyLines = !!params.config.list_item_empty_lines;
|
||||
const strict = !!params.config.strict;
|
||||
const listItemLineNumbers = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue