Skip to content

Commit 62bd913

Browse files
Version Packages (#223)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 24995eb commit 62bd913

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

.changeset/ordered-list-increment-option.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# eslint-plugin-markdown-preferences
22

3+
## 0.39.0
4+
5+
### Minor Changes
6+
7+
- [#222](https://github.com/ota-meshi/eslint-plugin-markdown-preferences/pull/222) [`24995eb`](https://github.com/ota-meshi/eslint-plugin-markdown-preferences/commit/24995ebe94f8e581b31d40e51ce46f1ecbcd8ce7) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - feat([`markdown-preferences/ordered-list-marker-sequence`](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/ordered-list-marker-sequence.html)): add `increment` option to enforce either sequential numbering or using `1.` for all items
8+
39
## 0.38.0
410

511
### Minor Changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ The rules with the following 💄 are included in the `standard` config.
224224
| [markdown-preferences/atx-heading-closing-sequence](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/atx-heading-closing-sequence.html) | enforce consistent use of closing sequence in ATX headings. | 🔧 | 💄 |
225225
| [markdown-preferences/code-fence-length](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/code-fence-length.html) | enforce consistent code fence length in fenced code blocks. | 🔧 | 💄 |
226226
| [markdown-preferences/no-laziness-blockquotes](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/no-laziness-blockquotes.html) | disallow laziness in blockquotes | | ⭐💄 |
227-
| [markdown-preferences/ordered-list-marker-sequence](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/ordered-list-marker-sequence.html) | enforce that ordered list markers use sequential numbers | 🔧 | 💄 |
227+
| [markdown-preferences/ordered-list-marker-sequence](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/ordered-list-marker-sequence.html) | enforce consistent ordered list marker numbering (sequential or flat) | 🔧 | 💄 |
228228
| [markdown-preferences/setext-heading-underline-length](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/setext-heading-underline-length.html) | enforce setext heading underline length | 🔧 | 💄 |
229229
| [markdown-preferences/sort-definitions](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/sort-definitions.html) | enforce a specific order for link definitions and footnote definitions | 🔧 | 💄 |
230230
| [markdown-preferences/table-leading-trailing-pipes](https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/table-leading-trailing-pipes.html) | enforce consistent use of leading and trailing pipes in tables. | 🔧 | 💄 |

docs/rules/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The rules with the following 💄 are included in the `plugin.configs.standard`
9696
| [markdown-preferences/atx-heading-closing-sequence](./atx-heading-closing-sequence.md) | enforce consistent use of closing sequence in ATX headings. | 🔧 | 💄 |
9797
| [markdown-preferences/code-fence-length](./code-fence-length.md) | enforce consistent code fence length in fenced code blocks. | 🔧 | 💄 |
9898
| [markdown-preferences/no-laziness-blockquotes](./no-laziness-blockquotes.md) | disallow laziness in blockquotes | | ⭐💄 |
99-
| [markdown-preferences/ordered-list-marker-sequence](./ordered-list-marker-sequence.md) | enforce that ordered list markers use sequential numbers | 🔧 | 💄 |
99+
| [markdown-preferences/ordered-list-marker-sequence](./ordered-list-marker-sequence.md) | enforce consistent ordered list marker numbering (sequential or flat) | 🔧 | 💄 |
100100
| [markdown-preferences/setext-heading-underline-length](./setext-heading-underline-length.md) | enforce setext heading underline length | 🔧 | 💄 |
101101
| [markdown-preferences/sort-definitions](./sort-definitions.md) | enforce a specific order for link definitions and footnote definitions | 🔧 | 💄 |
102102
| [markdown-preferences/table-leading-trailing-pipes](./table-leading-trailing-pipes.md) | enforce consistent use of leading and trailing pipes in tables. | 🔧 | 💄 |

docs/rules/ordered-list-marker-sequence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "markdown-preferences/ordered-list-marker-sequence"
5-
description: "enforce that ordered list markers use sequential numbers"
5+
description: "enforce consistent ordered list marker numbering (sequential or flat)"
66
since: "v0.12.0"
77
---
88

99
# markdown-preferences/ordered-list-marker-sequence
1010

11-
> enforce that ordered list markers use sequential numbers
11+
> enforce consistent ordered list marker numbering (sequential or flat)
1212
1313
- ⚙️ This rule is included in `plugin.configs.standard`.
1414
- 🔧 The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fix-problems) can automatically fix some of the problems reported by this rule.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-markdown-preferences",
3-
"version": "0.38.0",
3+
"version": "0.39.0",
44
"description": "ESLint plugin that enforces our markdown preferences",
55
"type": "module",
66
"exports": {

src/meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// This file has been automatically generated,
33
// in order to update its content execute "npm run update"
44
export const name = "eslint-plugin-markdown-preferences" as const;
5-
export const version = "0.38.0" as const;
5+
export const version = "0.39.0" as const;

src/rule-types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ export interface RuleOptions {
180180
*/
181181
'markdown-preferences/no-trailing-spaces'?: Linter.RuleEntry<MarkdownPreferencesNoTrailingSpaces>
182182
/**
183-
* enforce that ordered list markers use sequential numbers
183+
* enforce consistent ordered list marker numbering (sequential or flat)
184184
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/ordered-list-marker-sequence.html
185185
*/
186-
'markdown-preferences/ordered-list-marker-sequence'?: Linter.RuleEntry<[]>
186+
'markdown-preferences/ordered-list-marker-sequence'?: Linter.RuleEntry<MarkdownPreferencesOrderedListMarkerSequence>
187187
/**
188188
* enforce that ordered list markers start with 1 or 0
189189
* @see https://ota-meshi.github.io/eslint-plugin-markdown-preferences/rules/ordered-list-marker-start.html
@@ -499,6 +499,10 @@ type MarkdownPreferencesNoTrailingSpaces = []|[{
499499
skipBlankLines?: boolean
500500
ignoreComments?: boolean
501501
}]
502+
// ----- markdown-preferences/ordered-list-marker-sequence -----
503+
type MarkdownPreferencesOrderedListMarkerSequence = []|[{
504+
increment?: ("always" | "never")
505+
}]
502506
// ----- markdown-preferences/ordered-list-marker-start -----
503507
type MarkdownPreferencesOrderedListMarkerStart = []|[{
504508
start?: (1 | 0)

0 commit comments

Comments
 (0)