@theholocron/markdownlint-config 8.4.8

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 ADDED
@@ -0,0 +1,25 @@
1
+ # Markdownlint Config
2
+
3
+ A [markdownlint configuration](https://github.com/DavidAnson/markdownlint) for consistent markdown documentation, compatible with `@theholocron/prettier-config`.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add -D @theholocron/markdownlint-config markdownlint
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import config from "@theholocron/markdownlint-config";
15
+ import { lint } from "markdownlint/promise";
16
+
17
+ const results = await lint({ config, files: ["README.md"] });
18
+ ```
19
+
20
+ ## Rule choices
21
+
22
+ - Starts from `markdownlint`'s own upstream `style/prettier` preset — every rule that would otherwise conflict with Prettier's markdown formatting (line length, emphasis/strong style, blank-line placement, indent width, hard tabs, trailing whitespace) is already off.
23
+ - **Inline HTML allowed** (`no-inline-html` off) — badges, `<details>`, `<sub>` show up throughout this org's docs.
24
+ - **No required leading H1** (`first-line-heading` off) — spec files and doc partials routinely open with something other than a top-level heading.
25
+ - **Duplicate headings only flagged within the same nesting level** (`duplicate-heading: { siblings_only: true }`) — a repeated heading text at a different level (a common TOC/section-per-subsystem pattern) is allowed.
@@ -0,0 +1,22 @@
1
+ import { Configuration } from "markdownlint";
2
+ //#region index.d.ts
3
+ /**
4
+ * @see https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
5
+ *
6
+ * Org-specific additions on top of the upstream Prettier-compatibility
7
+ * preset, none of which that preset already covers:
8
+ *
9
+ * - `no-inline-html` (MD033): off. Badges, `<details>`/`<sub>`, and other
10
+ * raw HTML show up throughout this org's READMEs and wiki docs — same
11
+ * "advisory, not overly strict" stance `ALEX_CONFIG` takes.
12
+ * - `first-line-heading`/`first-line-h1` (MD041): off. Spec files
13
+ * (`.notes/*.spec.md`) and doc partials routinely don't open with an H1
14
+ * — frontmatter-style prose or a directive comment comes first instead.
15
+ * - `duplicate-heading` (MD024): `siblings_only: true`, not a blanket
16
+ * disable — still catches a genuine duplicate at the same nesting level,
17
+ * but allows the same heading text at different levels (a common
18
+ * TOC/section-per-subsystem pattern in this org's longer docs).
19
+ */
20
+ declare const config: Configuration;
21
+ //#endregion
22
+ export { config as default };
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ import prettierStyle from "markdownlint/style/prettier" with { type: "json" };
2
+ //#region index.ts
3
+ /**
4
+ * @see https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
5
+ *
6
+ * Org-specific additions on top of the upstream Prettier-compatibility
7
+ * preset, none of which that preset already covers:
8
+ *
9
+ * - `no-inline-html` (MD033): off. Badges, `<details>`/`<sub>`, and other
10
+ * raw HTML show up throughout this org's READMEs and wiki docs — same
11
+ * "advisory, not overly strict" stance `ALEX_CONFIG` takes.
12
+ * - `first-line-heading`/`first-line-h1` (MD041): off. Spec files
13
+ * (`.notes/*.spec.md`) and doc partials routinely don't open with an H1
14
+ * — frontmatter-style prose or a directive comment comes first instead.
15
+ * - `duplicate-heading` (MD024): `siblings_only: true`, not a blanket
16
+ * disable — still catches a genuine duplicate at the same nesting level,
17
+ * but allows the same heading text at different levels (a common
18
+ * TOC/section-per-subsystem pattern in this org's longer docs).
19
+ */
20
+ const config = {
21
+ ...prettierStyle,
22
+ "no-inline-html": false,
23
+ "first-line-heading": false,
24
+ "duplicate-heading": { siblings_only: true }
25
+ };
26
+ //#endregion
27
+ export { config as default };
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@theholocron/markdownlint-config",
3
+ "version": "8.4.8",
4
+ "description": "A markdownlint configuration for documentation in the Galaxy.",
5
+ "keywords": [
6
+ "markdownlint",
7
+ "markdown",
8
+ "linting",
9
+ "config",
10
+ "theholocron"
11
+ ],
12
+ "homepage": "https://github.com/theholocron/configs/tree/main/packages/markdownlint-config#readme",
13
+ "bugs": "https://github.com/theholocron/configs/issues",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/theholocron/configs.git"
17
+ },
18
+ "license": "GPL-3.0",
19
+ "author": "Newton Koumantzelis",
20
+ "type": "module",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js",
25
+ "default": "./dist/index.js"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "main": "dist/index.js",
30
+ "files": [
31
+ "dist/"
32
+ ],
33
+ "scripts": {
34
+ "delivery.build": "tsdown",
35
+ "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
36
+ "test:watch": "vitest",
37
+ "verification.typeSafety": "holocron run verification.typeSafety --",
38
+ "verification.unitTests": "holocron run verification.unitTests --"
39
+ },
40
+ "devDependencies": {
41
+ "@theholocron/cli": "catalog:holocron",
42
+ "@theholocron/tsconfig": "workspace:*",
43
+ "@theholocron/vitest-config": "workspace:*",
44
+ "@vitest/coverage-v8": "catalog:",
45
+ "tsdown": "catalog:",
46
+ "typescript": "catalog:",
47
+ "vitest": "catalog:"
48
+ },
49
+ "peerDependencies": {
50
+ "markdownlint": "^0.41"
51
+ },
52
+ "engines": {
53
+ "node": ">=22.0.0"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "releases": "https://github.com/theholocron/configs/releases",
59
+ "wiki": "https://github.com/theholocron/configs/wiki"
60
+ }