Skip to content

Commit 63d132d

Browse files
committedFeb 1, 2024
remark-preset-lint-consistent: add remark-lint-ordered-list-marker-value
1 parent 024510b commit 63d132d

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed
 

‎packages/remark-lint-ordered-list-marker-value/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* ###### Parameters
1919
*
20-
* * `options` ([`Options`][api-options], default: `'ordered'`)
20+
* * `options` ([`Options`][api-options], default: `'consistent'`)
2121
* — preferred style
2222
*
2323
* ###### Returns
@@ -253,7 +253,7 @@ const remarkLintOrderedListMarkerValue = lintRule(
253253
* @param {Root} tree
254254
* Tree.
255255
* @param {Options | null | undefined} [options='consistent']
256-
* Configuration (default: `'ordered'`).
256+
* Configuration (default: `'consistent'`).
257257
* @returns {undefined}
258258
* Nothing.
259259
*/

‎packages/remark-lint-ordered-list-marker-value/readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ This plugin is included in the following presets:
4444

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

4950
## Install
@@ -131,7 +132,7 @@ Warn when ordered list values are inconsistent.
131132

132133
###### Parameters
133134

134-
* `options` ([`Options`][api-options], default: `'ordered'`)
135+
* `options` ([`Options`][api-options], default: `'consistent'`)
135136
— preferred style
136137

137138
###### Returns

‎packages/remark-preset-lint-consistent/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import remarkLintHeadingStyle from 'remark-lint-heading-style'
3636
import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'
3737
import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'
3838
import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style'
39+
import remarkLintOrderedListMarkerValue from 'remark-lint-ordered-list-marker-value'
3940
import remarkLintRuleStyle from 'remark-lint-rule-style'
4041
import remarkLintStrongMarker from 'remark-lint-strong-marker'
4142
import remarkLintTableCellPadding from 'remark-lint-table-cell-padding'
@@ -53,6 +54,7 @@ const remarkPresetLintConsistent = {
5354
[remarkLintLinkTitleStyle, 'consistent'],
5455
remarkLintListItemContentIndent,
5556
[remarkLintOrderedListMarkerStyle, 'consistent'],
57+
[remarkLintOrderedListMarkerValue, 'consistent'],
5658
[remarkLintRuleStyle, 'consistent'],
5759
[remarkLintStrongMarker, 'consistent'],
5860
[remarkLintTableCellPadding, 'consistent']

‎packages/remark-preset-lint-consistent/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"remark-lint-link-title-style": "^3.0.0",
4141
"remark-lint-list-item-content-indent": "^3.0.0",
4242
"remark-lint-ordered-list-marker-style": "^3.0.0",
43+
"remark-lint-ordered-list-marker-value": "^3.0.0",
4344
"remark-lint-rule-style": "^3.0.0",
4445
"remark-lint-strong-marker": "^3.0.0",
4546
"remark-lint-table-cell-padding": "^4.0.0",

‎packages/remark-preset-lint-consistent/readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This preset includes the following plugins:
5050
| [`remark-lint-link-title-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style) | `'consistent'` |
5151
| [`remark-lint-list-item-content-indent`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent) | |
5252
| [`remark-lint-ordered-list-marker-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style) | `'consistent'` |
53+
| [`remark-lint-ordered-list-marker-value`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-value) | `'consistent'` |
5354
| [`remark-lint-rule-style`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style) | `'consistent'` |
5455
| [`remark-lint-strong-marker`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker) | `'consistent'` |
5556
| [`remark-lint-table-cell-padding`](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding) | `'consistent'` |

0 commit comments

Comments
 (0)
Please sign in to comment.