@electron/lint-roller 2.3.0 → 3.0.0
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/README.md +1 -5
- package/dist/bin/lint-markdown-api-history.js +136 -60
- package/dist/bin/lint-markdown-api-history.js.map +1 -1
- package/dist/bin/lint-markdown-links.js +62 -45
- package/dist/bin/lint-markdown-links.js.map +1 -1
- package/dist/bin/lint-markdown-standard.js +55 -36
- package/dist/bin/lint-markdown-standard.js.map +1 -1
- package/dist/bin/lint-markdown-ts-check.js +66 -47
- package/dist/bin/lint-markdown-ts-check.js.map +1 -1
- package/dist/lib/helpers.js +14 -23
- package/dist/lib/helpers.js.map +1 -1
- package/dist/lib/markdown.d.ts +21 -1
- package/dist/lib/markdown.js +121 -136
- package/dist/lib/markdown.js.map +1 -1
- package/lib/markdown.ts +3 -28
- package/markdownlint-rules/emd002.mjs +9 -11
- package/markdownlint-rules/emd003.mjs +9 -8
- package/markdownlint-rules/emd004.mjs +31 -0
- package/markdownlint-rules/index.mjs +5 -0
- package/package.json +17 -23
- package/dist/bin/markdownlint-cli-wrapper.d.ts +0 -2
- package/dist/bin/markdownlint-cli-wrapper.js +0 -16
- package/dist/bin/markdownlint-cli-wrapper.js.map +0 -1
- package/markdownlint-rules/emd002.js +0 -9908
- package/markdownlint-rules/emd003.js +0 -9905
- package/markdownlint-rules/emd004.js +0 -30
- package/markdownlint-rules/index.js +0 -5
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electron/lint-roller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Markdown linting helpers for Electron org repos",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
7
|
+
"node": ">=20.16.0 || >=22.4.0"
|
|
7
8
|
},
|
|
8
9
|
"bin": {
|
|
9
|
-
"electron-markdownlint": "./dist/bin/markdownlint-cli-wrapper.js",
|
|
10
10
|
"lint-roller-markdown-links": "./dist/bin/lint-markdown-links.js",
|
|
11
11
|
"lint-roller-markdown-standard": "./dist/bin/lint-markdown-standard.js",
|
|
12
12
|
"lint-roller-markdown-ts-check": "./dist/bin/lint-markdown-ts-check.js",
|
|
@@ -22,13 +22,11 @@
|
|
|
22
22
|
"lib": "lib"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "tsc
|
|
26
|
-
"build:emd002": "esbuild --platform=node --target=node18 --format=cjs --bundle --outfile=markdownlint-rules/emd002.js markdownlint-rules/emd002.mjs",
|
|
27
|
-
"build:emd003": "esbuild --platform=node --target=node18 --format=cjs --bundle --outfile=markdownlint-rules/emd003.js markdownlint-rules/emd003.mjs",
|
|
25
|
+
"build": "tsc",
|
|
28
26
|
"prepublishOnly": "yarn run build",
|
|
29
27
|
"lint:eslint": "eslint \"{bin,lib,markdownlint-rules,tests}/**/*.{js,mjs,ts}\"",
|
|
30
28
|
"lint:eslint:fix": "eslint --fix \"{bin,lib,markdownlint-rules,tests}/**/*.{js,mjs,ts}\"",
|
|
31
|
-
"lint:markdown": "yarn run build &&
|
|
29
|
+
"lint:markdown": "yarn run build && markdownlint-cli2 \"*.md\" && node ./dist/bin/lint-markdown-links.js \"*.md\"",
|
|
32
30
|
"lint:prettier": "prettier --check \"{bin,lib,markdownlint-rules,tests}/**/*.{js,mjs,ts}\"",
|
|
33
31
|
"lint:prettier:fix": "prettier --write \"{bin,lib,markdownlint-rules,tests}/**/*.{js,mjs,ts}\"",
|
|
34
32
|
"lint": "yarn run lint:prettier && yarn run lint:markdown",
|
|
@@ -45,37 +43,36 @@
|
|
|
45
43
|
"url": "https://github.com/electron/lint-roller/issues"
|
|
46
44
|
},
|
|
47
45
|
"homepage": "https://github.com/electron/lint-roller#readme",
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"provenance": true
|
|
48
|
+
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@electron-internal/eslint-config": "^1.0.1",
|
|
50
|
-
"@types/balanced-match": "^
|
|
51
|
+
"@types/balanced-match": "^3.0.2",
|
|
51
52
|
"@types/glob": "^8.1.0",
|
|
52
|
-
"@types/markdown-it": "^
|
|
53
|
-
"@types/
|
|
54
|
-
"@types/node": "20.1.2",
|
|
55
|
-
"esbuild": "^0.21.0",
|
|
53
|
+
"@types/markdown-it": "^14.1.2",
|
|
54
|
+
"@types/node": "22.8.7",
|
|
56
55
|
"eslint": "^8.54.0",
|
|
57
56
|
"eslint-config-prettier": "^9.1.0",
|
|
58
57
|
"eslint-plugin-node": "^11.1.0",
|
|
58
|
+
"markdownlint-cli2": "^0.14.0",
|
|
59
59
|
"prettier": "^3.2.5",
|
|
60
60
|
"typescript": "^5.4.5",
|
|
61
|
-
"vitest": "^1.
|
|
61
|
+
"vitest": "^2.1.4"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@dsanders11/vscode-markdown-languageservice": "^0.3.0",
|
|
65
65
|
"ajv": "^8.16.0",
|
|
66
|
-
"balanced-match": "^
|
|
67
|
-
"glob": "^
|
|
66
|
+
"balanced-match": "^3.0.1",
|
|
67
|
+
"glob": "^10.4.5",
|
|
68
68
|
"hast-util-from-html": "^2.0.1",
|
|
69
|
-
"markdown-it": "^
|
|
70
|
-
"markdownlint-cli": "^0.40.0",
|
|
69
|
+
"markdown-it": "^14.1.0",
|
|
71
70
|
"mdast-util-from-markdown": "^1.3.0",
|
|
72
|
-
"minimist": "^1.2.8",
|
|
73
|
-
"rimraf": "^4.4.1",
|
|
74
71
|
"standard": "^17.0.0",
|
|
75
72
|
"unist-util-visit": "^4.1.2",
|
|
76
73
|
"vscode-languageserver": "^8.1.0",
|
|
77
74
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
78
|
-
"vscode-uri": "^3.0.
|
|
75
|
+
"vscode-uri": "^3.0.8",
|
|
79
76
|
"yaml": "^2.4.5"
|
|
80
77
|
},
|
|
81
78
|
"peerDependencies": {
|
|
@@ -85,8 +82,5 @@
|
|
|
85
82
|
"typescript": {
|
|
86
83
|
"optional": true
|
|
87
84
|
}
|
|
88
|
-
},
|
|
89
|
-
"resolutions": {
|
|
90
|
-
"jackspeak": "2.1.1"
|
|
91
85
|
}
|
|
92
86
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const cp = require("node:child_process");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
if (require.main === module) {
|
|
7
|
-
const { status } = cp.spawnSync(process.execPath, [
|
|
8
|
-
require.resolve('markdownlint-cli'),
|
|
9
|
-
'-r',
|
|
10
|
-
path.resolve(__dirname, '../../markdownlint-rules/index.js'),
|
|
11
|
-
...process.argv.slice(2),
|
|
12
|
-
], { stdio: 'inherit' });
|
|
13
|
-
if (status)
|
|
14
|
-
process.exit(status);
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=markdownlint-cli-wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdownlint-cli-wrapper.js","sourceRoot":"","sources":["../../bin/markdownlint-cli-wrapper.ts"],"names":[],"mappings":";;;AAEA,yCAAyC;AACzC,kCAAkC;AAElC,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAC7B,OAAO,CAAC,QAAQ,EAChB;QACE,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI;QACJ,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,mCAAmC,CAAC;QAC5D,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;KACzB,EACD,EAAE,KAAK,EAAE,SAAS,EAAE,CACrB,CAAC;IACF,IAAI,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC"}
|