Add MD044 proper-names "Proper names should have the correct capitalization" (fixes #39).

This commit is contained in:
David Anson 2016-12-22 13:34:18 -08:00
parent 46cbcfa55e
commit d8975282dc
13 changed files with 185 additions and 5 deletions

View file

@ -212,6 +212,18 @@ rules.forEach(function forRule(rule) {
}
};
break;
case "MD044":
scheme.properties = {
"names": {
"description": "List of proper names",
"type": "array",
"items": {
"type": "string"
},
"default": null
}
};
break;
default:
custom = false;
break;

View file

@ -871,6 +871,44 @@
},
"additionalProperties": false
},
"MD044": {
"description": "MD044/proper-names - Proper names should have the correct capitalization",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"names": {
"description": "List of proper names",
"type": "array",
"items": {
"type": "string"
},
"default": null
}
},
"additionalProperties": false
},
"proper-names": {
"description": "MD044/proper-names - Proper names should have the correct capitalization",
"type": [
"boolean",
"object"
],
"default": true,
"properties": {
"names": {
"description": "List of proper names",
"type": "array",
"items": {
"type": "string"
},
"default": null
}
},
"additionalProperties": false
},
"headers": {
"description": "headers - MD001, MD002, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
"type": "boolean",
@ -970,6 +1008,11 @@
"description": "language - MD040",
"type": "boolean",
"default": true
},
"spelling": {
"description": "spelling - MD044",
"type": "boolean",
"default": true
}
},
"additionalProperties": false