mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-05 15:38:49 +01:00
Enable, validate, and demonstrate the use of built-in style definitions (fixes #593).
This commit is contained in:
parent
eb05bac07d
commit
c383aab383
3 changed files with 21 additions and 4 deletions
10
README.md
10
README.md
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue