Skip to content

Commit

Permalink
remark-preset-lint-consistent: add `remark-lint-ordered-list-marker-v…
Browse files Browse the repository at this point in the history
…alue`
  • Loading branch information
wooorm committed Feb 1, 2024
1 parent 024510b commit 63d132d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/remark-lint-ordered-list-marker-value/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* ###### Parameters
*
* * `options` ([`Options`][api-options], default: `'ordered'`)
* * `options` ([`Options`][api-options], default: `'consistent'`)
* — preferred style
*
* ###### Returns
Expand Down Expand Up @@ -253,7 +253,7 @@ const remarkLintOrderedListMarkerValue = lintRule(
* @param {Root} tree
* Tree.
* @param {Options | null | undefined} [options='consistent']
* Configuration (default: `'ordered'`).
* Configuration (default: `'consistent'`).
* @returns {undefined}
* Nothing.
*/
Expand Down
3 changes: 2 additions & 1 deletion packages/remark-lint-ordered-list-marker-value/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ This plugin is included in the following presets:

| Preset | Options |
| - | - |
| [`remark-preset-lint-consistent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-consistent) | `'consistent'` |
| [`remark-preset-lint-markdown-style-guide`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-preset-lint-markdown-style-guide) | `'one'` |

## Install
Expand Down Expand Up @@ -131,7 +132,7 @@ Warn when ordered list values are inconsistent.

###### Parameters

* `options` ([`Options`][api-options], default: `'ordered'`)
* `options` ([`Options`][api-options], default: `'consistent'`)
— preferred style

###### Returns
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-preset-lint-consistent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import remarkLintHeadingStyle from 'remark-lint-heading-style'
import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'
import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'
import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style'
import remarkLintOrderedListMarkerValue from 'remark-lint-ordered-list-marker-value'
import remarkLintRuleStyle from 'remark-lint-rule-style'
import remarkLintStrongMarker from 'remark-lint-strong-marker'
import remarkLintTableCellPadding from 'remark-lint-table-cell-padding'
Expand All @@ -53,6 +54,7 @@ const remarkPresetLintConsistent = {
[remarkLintLinkTitleStyle, 'consistent'],
remarkLintListItemContentIndent,
[remarkLintOrderedListMarkerStyle, 'consistent'],
[remarkLintOrderedListMarkerValue, 'consistent'],
[remarkLintRuleStyle, 'consistent'],
[remarkLintStrongMarker, 'consistent'],
[remarkLintTableCellPadding, 'consistent']
Expand Down
1 change: 1 addition & 0 deletions packages/remark-preset-lint-consistent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"remark-lint-link-title-style": "^3.0.0",
"remark-lint-list-item-content-indent": "^3.0.0",
"remark-lint-ordered-list-marker-style": "^3.0.0",
"remark-lint-ordered-list-marker-value": "^3.0.0",
"remark-lint-rule-style": "^3.0.0",
"remark-lint-strong-marker": "^3.0.0",
"remark-lint-table-cell-padding": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/remark-preset-lint-consistent/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ This preset includes the following plugins:
| [`remark-lint-link-title-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style) | `'consistent'` |
| [`remark-lint-list-item-content-indent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent) | |
| [`remark-lint-ordered-list-marker-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style) | `'consistent'` |
| [`remark-lint-ordered-list-marker-value`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-value) | `'consistent'` |
| [`remark-lint-rule-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style) | `'consistent'` |
| [`remark-lint-strong-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker) | `'consistent'` |
| [`remark-lint-table-cell-padding`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding) | `'consistent'` |
Expand Down

0 comments on commit 63d132d

Please sign in to comment.