Enable, validate, and demonstrate the use of built-in style definitions (fixes #593).

This commit is contained in:
David Anson 2022-10-02 19:28:54 -07:00
parent eb05bac07d
commit c383aab383
3 changed files with 21 additions and 4 deletions

View file

@ -354,7 +354,7 @@ configuration object with all properties set to the default value.
Sets of rules (known as a "style") can be stored separately and loaded
as [JSON](https://en.wikipedia.org/wiki/JSON).
Example:
Example of referencing a built-in style from JavaScript:
```js
const options = {
@ -363,6 +363,14 @@ const options = {
};
```
Example doing so from `.markdownlint.json` via `extends` (more on this below):
```json
{
"extends": "markdownlint/style/relaxed"
}
```
See the [style](style) directory for more samples.
See [markdownlint-config-schema.json](schema/markdownlint-config-schema.json)