@alauda/doom 1.10.0 → 1.10.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/lib/eslint.js +8 -5
- package/lib/remark-lint/list-item-size.js +0 -1
- package/lib/remarkrc.js +1 -26
- package/package.json +3 -6
package/lib/eslint.js
CHANGED
|
@@ -32,11 +32,14 @@ async function doom(cspellOptionsOrRoot) {
|
|
|
32
32
|
ignores: ['**/.yarn', '**/dist', '**/lib', '**/node_modules'],
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
mdx
|
|
39
|
-
|
|
35
|
+
...mdx.configs.flat,
|
|
36
|
+
rules: {
|
|
37
|
+
...mdx.configs.flat.rules,
|
|
38
|
+
'mdx/remark': 'error',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
extends: [js.configs.recommended, react.configs.recommended],
|
|
40
43
|
languageOptions: {
|
|
41
44
|
globals: globals.node,
|
|
42
45
|
},
|
package/lib/remarkrc.js
CHANGED
|
@@ -6,18 +6,11 @@ import remarkLintCodeBlockSplitList from 'remark-lint-code-block-split-list';
|
|
|
6
6
|
import remarkLintHeadingIncrement from 'remark-lint-heading-increment';
|
|
7
7
|
// @ts-expect-error -- https://github.com/laysent/remark-lint-plugins/issues/51
|
|
8
8
|
import remarkLintLintMatchPunctuation from 'remark-lint-match-punctuation';
|
|
9
|
-
// import remarkLintMaximumHeadingLength, {
|
|
10
|
-
// type Options,
|
|
11
|
-
// } from 'remark-lint-maximum-heading-length'
|
|
12
9
|
// @ts-expect-error -- https://github.com/laysent/remark-lint-plugins/issues/51
|
|
13
10
|
import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number';
|
|
14
11
|
import remarkLintNoDuplicateHeadingsInSection from 'remark-lint-no-duplicate-headings-in-section';
|
|
15
|
-
import remarkLintNoHeadingContentIndent from 'remark-lint-no-heading-content-indent';
|
|
16
|
-
import remarkLintNoHeadingIndent from 'remark-lint-no-heading-indent';
|
|
17
12
|
import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell';
|
|
18
|
-
|
|
19
|
-
import remarkLintNoRepeatPunctuation from 'remark-lint-no-repeat-punctuation';
|
|
20
|
-
import doomLint, { listItemPunctuation, listItemSize, maximumLinkContentLength, noDeepHeading, noDeepList, noEmptyTableCell, noHeadingPunctuation, noHeadingSupSub, noParagraphIndent, tableSize, unitCase, } from "./remark-lint/index.js";
|
|
13
|
+
import doomLint, { listItemSize, noDeepHeading, noDeepList, noParagraphIndent, tableSize, unitCase, } from "./remark-lint/index.js";
|
|
21
14
|
export default {
|
|
22
15
|
plugins: [
|
|
23
16
|
remarkDirective,
|
|
@@ -26,31 +19,13 @@ export default {
|
|
|
26
19
|
remarkLintCodeBlockSplitList,
|
|
27
20
|
remarkLintHeadingIncrement,
|
|
28
21
|
remarkLintLintMatchPunctuation,
|
|
29
|
-
// [
|
|
30
|
-
// remarkLintMaximumHeadingLength,
|
|
31
|
-
// {
|
|
32
|
-
// size: 50,
|
|
33
|
-
// stringLength(value) {
|
|
34
|
-
// const [text] = extractTextAndId(value)
|
|
35
|
-
// return stringWidth(text)
|
|
36
|
-
// },
|
|
37
|
-
// } satisfies Options,
|
|
38
|
-
// ],
|
|
39
22
|
remarkLintNoChinesePunctuationInNumber,
|
|
40
23
|
remarkLintNoDuplicateHeadingsInSection,
|
|
41
|
-
remarkLintNoHeadingContentIndent,
|
|
42
|
-
remarkLintNoHeadingIndent,
|
|
43
24
|
remarkLintNoHiddenTableCell,
|
|
44
|
-
remarkLintNoRepeatPunctuation,
|
|
45
25
|
doomLint,
|
|
46
|
-
listItemPunctuation,
|
|
47
26
|
listItemSize,
|
|
48
|
-
maximumLinkContentLength,
|
|
49
27
|
noDeepHeading,
|
|
50
28
|
noDeepList,
|
|
51
|
-
noEmptyTableCell,
|
|
52
|
-
noHeadingPunctuation,
|
|
53
|
-
noHeadingSupSub,
|
|
54
29
|
noParagraphIndent,
|
|
55
30
|
tableSize,
|
|
56
31
|
unitCase,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": "git+https://github.com/alauda/doom.git",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
66
66
|
"mdast-util-phrasing": "^4.1.0",
|
|
67
67
|
"mdast-util-to-string": "^4.0.0",
|
|
68
|
-
"mermaid": "^11.
|
|
69
|
-
"openai": "^5.
|
|
68
|
+
"mermaid": "^11.9.0",
|
|
69
|
+
"openai": "^5.10.1",
|
|
70
70
|
"openapi-types": "^12.1.3",
|
|
71
71
|
"p-ratelimit": "^1.0.1",
|
|
72
72
|
"pdf-lib": "^1.17.1",
|
|
@@ -85,10 +85,7 @@
|
|
|
85
85
|
"remark-lint-match-punctuation": "^0.2.1",
|
|
86
86
|
"remark-lint-no-chinese-punctuation-in-number": "^0.1.2",
|
|
87
87
|
"remark-lint-no-duplicate-headings-in-section": "^4.0.1",
|
|
88
|
-
"remark-lint-no-heading-content-indent": "^5.0.1",
|
|
89
|
-
"remark-lint-no-heading-indent": "^5.0.1",
|
|
90
88
|
"remark-lint-no-hidden-table-cell": "^1.0.1",
|
|
91
|
-
"remark-lint-no-repeat-punctuation": "^0.1.4",
|
|
92
89
|
"remark-mdx": "^3.1.0",
|
|
93
90
|
"remark-message-control": "^8.0.0",
|
|
94
91
|
"remark-stringify": "^11.0.0",
|