@markuplint/create-rule 4.8.0 → 5.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-alpha.1](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.0...v5.0.0-alpha.1) (2026-02-22)
7
+
8
+ **Note:** Version bump only for package @markuplint/create-rule
9
+
10
+ # [5.0.0-alpha.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v5.0.0-alpha.0) (2026-02-20)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **create-rule:** use toSorted in spec files to satisfy ESLint ([130372f](https://github.com/markuplint/markuplint/commit/130372fb5f74802f66b31ea9b50c4825d54f1850))
15
+
6
16
  # [4.8.0](https://github.com/markuplint/markuplint/compare/@markuplint/create-rule@4.7.22...@markuplint/create-rule@4.8.0) (2026-02-10)
7
17
 
8
18
  ### Features
package/lib/cli.js CHANGED
@@ -62,9 +62,7 @@ Examples:
62
62
  * successful early exit without using `process.exit`.
63
63
  */
64
64
  class HelpRequested {
65
- constructor() {
66
- this.code = 0;
67
- }
65
+ code = 0;
68
66
  }
69
67
  /**
70
68
  * Error thrown when CLI arguments are invalid or missing.
@@ -4,8 +4,5 @@
4
4
  * core options missing, or repository not found).
5
5
  */
6
6
  export class CreateRuleHelperError extends Error {
7
- constructor() {
8
- super(...arguments);
9
- this.name = 'CreateRuleHelperError';
10
- }
7
+ name = 'CreateRuleHelperError';
11
8
  }
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@markuplint/create-rule",
3
- "version": "4.8.0",
3
+ "version": "5.0.0-alpha.1",
4
4
  "description": "Rule generator for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
7
7
  "license": "MIT",
8
+ "engines": {
9
+ "node": ">=22"
10
+ },
8
11
  "type": "module",
9
12
  "exports": {
10
13
  ".": {
@@ -22,15 +25,15 @@
22
25
  "clean": "tsc --build --clean tsconfig.build.json"
23
26
  },
24
27
  "dependencies": {
25
- "@markuplint/cli-utils": "4.4.14",
26
- "@markuplint/ml-core": "4.13.3",
27
- "glob": "13.0.1",
28
- "prettier": "3.6.2",
28
+ "@markuplint/cli-utils": "5.0.0-alpha.1",
29
+ "@markuplint/ml-core": "5.0.0-alpha.1",
30
+ "glob": "13.0.6",
31
+ "prettier": "3.8.1",
29
32
  "typescript": "5.9.3"
30
33
  },
31
34
  "devDependencies": {
32
35
  "@types/fs-extra": "11.0.4",
33
36
  "fs-extra": "11.3.3"
34
37
  },
35
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
38
+ "gitHead": "78a295e73a097a1ce09c777c06fa21ab68136387"
36
39
  }
@@ -52,8 +52,8 @@ TODO: Write a description
52
52
 
53
53
  | Property | Type | Optional | Default Value | Description |
54
54
  | -------- | ---------- | -------- | ------------- | ------------------------- |
55
- | `foo` | `string` | ✔ | `undefined` | TODO: Write a description |
56
- | `bar` | `number[]` | ✔ | `undefined` | TODO: Write a description |
55
+ | `foo` | `string` | ✔ | `undefined` | TODO: Write a description |
56
+ | `bar` | `number[]` | ✔ | `undefined` | TODO: Write a description |
57
57
 
58
58
  ### Default severity
59
59