@entro314labs/markdownfix 0.0.14 → 0.0.16
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/eslint.config.js +14 -4
- package/package.json +11 -11
package/eslint.config.js
CHANGED
|
@@ -71,12 +71,22 @@ export default [
|
|
|
71
71
|
},
|
|
72
72
|
rules: {
|
|
73
73
|
...mdxPlugin.flatCodeBlocks.rules,
|
|
74
|
-
//
|
|
74
|
+
// Rules that make sense for documentation examples
|
|
75
75
|
'no-var': 'error',
|
|
76
76
|
'prefer-const': 'error',
|
|
77
|
-
|
|
78
|
-
//
|
|
79
|
-
'no-
|
|
77
|
+
|
|
78
|
+
// Disable rules that don't make sense for isolated code examples
|
|
79
|
+
'no-unused-vars': 'off', // Examples often show declarations without usage
|
|
80
|
+
'no-undef': 'off', // Examples may reference external variables/functions
|
|
81
|
+
'no-console': 'off', // Console logs are common in examples
|
|
82
|
+
'no-unreachable': 'off', // Examples may show code patterns, not full logic
|
|
83
|
+
'no-constant-condition': 'off', // Examples may use simplified conditions
|
|
84
|
+
'no-empty': 'off', // Empty blocks may be placeholders in examples
|
|
85
|
+
'prefer-rest-params': 'off', // Examples may show older patterns
|
|
86
|
+
'prefer-spread': 'off', // Examples may demonstrate various approaches
|
|
87
|
+
'@typescript-eslint/no-unused-vars': 'off', // TypeScript variant
|
|
88
|
+
'import/no-unresolved': 'off', // Examples won't have real imports
|
|
89
|
+
'no-redeclare': 'off', // Multiple examples might reuse variable names
|
|
80
90
|
}
|
|
81
91
|
}
|
|
82
92
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entro314labs/markdownfix",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Opinionated markdown formatter and linter for MD, MDX, MDC, and MDD files using Remark/Unified ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
"remark-cli": "^12.0.1"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=22.
|
|
52
|
+
"node": ">=22.x"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@adobe/remark-gridtables": "^3.0.15",
|
|
56
|
-
"@code-dot-org/remark-plugins": "^2.0.
|
|
57
|
-
"@entro314labs/remark-mdd": "^0.0.
|
|
56
|
+
"@code-dot-org/remark-plugins": "^2.0.1",
|
|
57
|
+
"@entro314labs/remark-mdd": "^0.0.16",
|
|
58
58
|
"@theguild/remark-mermaid": "^0.3.0",
|
|
59
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.39.1",
|
|
60
60
|
"eslint-plugin-mdx": "^3.6.2",
|
|
61
61
|
"eslint-plugin-react": "^7.37.5",
|
|
62
|
-
"fumadocs-docgen": "^3.0.
|
|
63
|
-
"glob": "^
|
|
64
|
-
"js-yaml": "^4.1.
|
|
62
|
+
"fumadocs-docgen": "^3.0.4",
|
|
63
|
+
"glob": "^12.0.0",
|
|
64
|
+
"js-yaml": "^4.1.1",
|
|
65
65
|
"rehype-remark": "^10.0.1",
|
|
66
|
-
"remark": "
|
|
66
|
+
"remark": "latest",
|
|
67
67
|
"remark-directive": "^4.0.0",
|
|
68
|
-
"remark-docx": "^0.
|
|
68
|
+
"remark-docx": "^0.2.0",
|
|
69
69
|
"remark-emoji": "^5.0.2",
|
|
70
70
|
"remark-frontmatter": "^5.0.0",
|
|
71
71
|
"remark-gfm": "^4.0.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"remark-lint-table-pipe-alignment": "^4.1.1",
|
|
108
108
|
"remark-lint-table-pipes": "^5.0.1",
|
|
109
109
|
"remark-lint-unordered-list-marker-style": "^4.0.1",
|
|
110
|
-
"remark-mdc": "^3.
|
|
110
|
+
"remark-mdc": "^3.8.1",
|
|
111
111
|
"remark-mdx": "^3.1.1",
|
|
112
112
|
"remark-mdx-frontmatter": "^5.2.0",
|
|
113
113
|
"remark-preset-lint-consistent": "^6.0.1",
|