@storm-software/markdownlint 0.12.8 → 0.13.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.
@@ -0,0 +1,126 @@
1
+ import { S as SS01 } from './rules/no-default-alt-text.js';
2
+
3
+ /**
4
+ * The markdownlint library used by Storm Software for building TypeScript applications.
5
+ *
6
+ * @remarks
7
+ * An opinionated collection of markdownlint rules used by Storm Software.
8
+ *
9
+ * @packageDocumentation
10
+ */
11
+ declare const init: (defaultConfig: any) => any;
12
+ declare const rules: typeof SS01[];
13
+ declare const config: {
14
+ $schema: string;
15
+ "header-increment": boolean;
16
+ "first-header-h1": boolean;
17
+ "heading-style": {
18
+ style: string;
19
+ };
20
+ "ul-style": {
21
+ style: string;
22
+ };
23
+ "list-indent": boolean;
24
+ "ul-start-left": boolean;
25
+ "ul-indent": {
26
+ indent: number;
27
+ start_indented: boolean;
28
+ };
29
+ "no-trailing-spaces": {
30
+ br_spaces: number;
31
+ list_item_empty_lines: boolean;
32
+ };
33
+ "no-hard-tabs": {
34
+ code_blocks: boolean;
35
+ };
36
+ "no-reversed-links": boolean;
37
+ "no-multiple-blanks": {
38
+ maximum: number;
39
+ };
40
+ "line-length": {
41
+ tables: boolean;
42
+ code_blocks: boolean;
43
+ headings: boolean;
44
+ line_length: number;
45
+ heading_line_length: number;
46
+ code_block_line_length: number;
47
+ };
48
+ "commands-show-output": boolean;
49
+ "no-missing-space-atx": boolean;
50
+ "no-multiple-space-atx": boolean;
51
+ "no-missing-space-closed-atx": boolean;
52
+ "no-multiple-space-closed-atx": boolean;
53
+ "blanks-around-headers": boolean;
54
+ "header-start-left": boolean;
55
+ "no-duplicate-heading": boolean;
56
+ "single-h1": boolean;
57
+ "no-trailing-punctuation": {
58
+ punctuation: string;
59
+ };
60
+ "no-multiple-space-blockquote": boolean;
61
+ "no-blanks-blockquote": boolean;
62
+ "ol-prefix": {
63
+ style: string;
64
+ };
65
+ "list-marker-space": {
66
+ ul_single: number;
67
+ ol_single: number;
68
+ ul_multi: number;
69
+ ol_multi: number;
70
+ };
71
+ "no-empty-code-blocks": boolean;
72
+ "no-empty-lists": boolean;
73
+ "no-inline-html": boolean;
74
+ "no-bare-urls": boolean;
75
+ "hr-style": {
76
+ style: string;
77
+ };
78
+ "no-emphasis-as-header": boolean;
79
+ "no-space-in-emphasis": boolean;
80
+ "no-space-in-code": boolean;
81
+ "no-space-in-links": boolean;
82
+ "fenced-code-language": boolean;
83
+ "first-line-h1": boolean;
84
+ "no-empty-links": boolean;
85
+ "required-headers": boolean;
86
+ "proper-names": boolean;
87
+ "no-alt-text": boolean;
88
+ "code-block-style": {
89
+ style: string;
90
+ };
91
+ "single-trailing-newline": boolean;
92
+ "code-fence-style": {
93
+ style: string;
94
+ };
95
+ "emphasis-style": {
96
+ style: string;
97
+ };
98
+ "strong-style": {
99
+ style: string;
100
+ };
101
+ "link-fragments": boolean;
102
+ "reference-links-images": {
103
+ shortcut_syntax: boolean;
104
+ };
105
+ "link-image-reference-definitions": {
106
+ ignored_definitions: string[];
107
+ };
108
+ "link-image-style": {
109
+ autolink: boolean;
110
+ collapsed: boolean;
111
+ full: boolean;
112
+ inline: boolean;
113
+ shortcut: boolean;
114
+ url_inline: boolean;
115
+ };
116
+ "table-pipe-style": {
117
+ style: string;
118
+ };
119
+ "table-column-count": boolean;
120
+ "blanks-around-tables": boolean;
121
+ "spaces-around-links": {
122
+ both: boolean;
123
+ };
124
+ };
125
+
126
+ export { config, config as default, init, rules };
package/dist/index.js ADDED
@@ -0,0 +1,154 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkZPSREAWVjs = require('./chunk-ZPSREAWV.js');
4
+ require('./chunk-T2GN3E2Q.js');
5
+ require('./chunk-ZD5PYAVS.js');
6
+ require('./chunk-CSEVGJXW.js');
7
+
8
+
9
+ var _chunk5BKT4CS5js = require('./chunk-5BKT4CS5.js');
10
+
11
+ // src/index.ts
12
+ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
13
+
14
+ // src/markdownlint.ts
15
+ var markdownlintConfig = {
16
+ "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.37.4/schema/markdownlint-config-schema.json",
17
+ "header-increment": true,
18
+ "first-header-h1": false,
19
+ "heading-style": {
20
+ "style": "atx"
21
+ },
22
+ "ul-style": {
23
+ "style": "dash"
24
+ },
25
+ "list-indent": true,
26
+ "ul-start-left": false,
27
+ "ul-indent": {
28
+ "indent": 2,
29
+ "start_indented": true
30
+ },
31
+ "no-trailing-spaces": {
32
+ "br_spaces": 0,
33
+ "list_item_empty_lines": false
34
+ },
35
+ "no-hard-tabs": {
36
+ "code_blocks": true
37
+ },
38
+ "no-reversed-links": true,
39
+ "no-multiple-blanks": {
40
+ "maximum": 1
41
+ },
42
+ "line-length": {
43
+ "tables": false,
44
+ "code_blocks": true,
45
+ "headings": true,
46
+ "line_length": 80,
47
+ "heading_line_length": 80,
48
+ "code_block_line_length": 80
49
+ },
50
+ "commands-show-output": true,
51
+ "no-missing-space-atx": true,
52
+ "no-multiple-space-atx": true,
53
+ "no-missing-space-closed-atx": true,
54
+ "no-multiple-space-closed-atx": true,
55
+ "blanks-around-headers": false,
56
+ "header-start-left": true,
57
+ "no-duplicate-heading": true,
58
+ "single-h1": false,
59
+ "no-trailing-punctuation": {
60
+ "punctuation": ".,:!?"
61
+ },
62
+ "no-multiple-space-blockquote": true,
63
+ "no-blanks-blockquote": false,
64
+ "ol-prefix": {
65
+ "style": "one"
66
+ },
67
+ "list-marker-space": {
68
+ "ul_single": 1,
69
+ "ol_single": 1,
70
+ "ul_multi": 1,
71
+ "ol_multi": 1
72
+ },
73
+ "no-empty-code-blocks": true,
74
+ "no-empty-lists": true,
75
+ "no-inline-html": true,
76
+ "no-bare-urls": true,
77
+ "hr-style": {
78
+ "style": "---"
79
+ },
80
+ "no-emphasis-as-header": false,
81
+ "no-space-in-emphasis": true,
82
+ "no-space-in-code": true,
83
+ "no-space-in-links": false,
84
+ "fenced-code-language": true,
85
+ "first-line-h1": false,
86
+ "no-empty-links": true,
87
+ "required-headers": false,
88
+ "proper-names": false,
89
+ "no-alt-text": false,
90
+ "code-block-style": {
91
+ "style": "fenced"
92
+ },
93
+ "single-trailing-newline": true,
94
+ "code-fence-style": {
95
+ "style": "backtick"
96
+ },
97
+ "emphasis-style": {
98
+ "style": "consistent"
99
+ },
100
+ "strong-style": {
101
+ "style": "asterisk"
102
+ },
103
+ "link-fragments": true,
104
+ "reference-links-images": {
105
+ "shortcut_syntax": false
106
+ },
107
+ "link-image-reference-definitions": {
108
+ "ignored_definitions": [
109
+ "//"
110
+ ]
111
+ },
112
+ "link-image-style": {
113
+ "autolink": true,
114
+ "collapsed": true,
115
+ "full": true,
116
+ "inline": true,
117
+ "shortcut": true,
118
+ "url_inline": true
119
+ },
120
+ "table-pipe-style": {
121
+ "style": "consistent"
122
+ },
123
+ "table-column-count": true,
124
+ "blanks-around-tables": true,
125
+ "spaces-around-links": {
126
+ "both": true
127
+ }
128
+ };
129
+
130
+ // src/index.ts
131
+ var offByDefault = [];
132
+ var baseConfig = {
133
+ ...markdownlintConfig
134
+ };
135
+ for (const rule of _chunkZPSREAWVjs.rules) {
136
+ const ruleName = _optionalChain([rule, 'optionalAccess', _ => _.names, 'access', _2 => _2[1]]);
137
+ if (ruleName) {
138
+ baseConfig[ruleName] = offByDefault.includes(ruleName) ? false : true;
139
+ }
140
+ }
141
+ var init = /* @__PURE__ */ _chunk5BKT4CS5js.__name.call(void 0, function init2(defaultConfig) {
142
+ return _defu2.default.call(void 0, defaultConfig, baseConfig);
143
+ }, "init");
144
+ var rules2 = [
145
+ ..._chunkZPSREAWVjs.rules
146
+ ];
147
+ var config = baseConfig;
148
+ var index_default = config;
149
+
150
+
151
+
152
+
153
+
154
+ exports.config = config; exports.default = index_default; exports.init = init; exports.rules = rules2;
package/dist/index.mjs ADDED
@@ -0,0 +1,154 @@
1
+ import {
2
+ rules
3
+ } from "./chunk-KF4NZASG.mjs";
4
+ import "./chunk-T5XN24SU.mjs";
5
+ import "./chunk-UP2FAX2A.mjs";
6
+ import "./chunk-BLA57FQS.mjs";
7
+ import {
8
+ __name
9
+ } from "./chunk-A3UDIEI3.mjs";
10
+
11
+ // src/index.ts
12
+ import defu from "defu";
13
+
14
+ // src/markdownlint.ts
15
+ var markdownlintConfig = {
16
+ "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.37.4/schema/markdownlint-config-schema.json",
17
+ "header-increment": true,
18
+ "first-header-h1": false,
19
+ "heading-style": {
20
+ "style": "atx"
21
+ },
22
+ "ul-style": {
23
+ "style": "dash"
24
+ },
25
+ "list-indent": true,
26
+ "ul-start-left": false,
27
+ "ul-indent": {
28
+ "indent": 2,
29
+ "start_indented": true
30
+ },
31
+ "no-trailing-spaces": {
32
+ "br_spaces": 0,
33
+ "list_item_empty_lines": false
34
+ },
35
+ "no-hard-tabs": {
36
+ "code_blocks": true
37
+ },
38
+ "no-reversed-links": true,
39
+ "no-multiple-blanks": {
40
+ "maximum": 1
41
+ },
42
+ "line-length": {
43
+ "tables": false,
44
+ "code_blocks": true,
45
+ "headings": true,
46
+ "line_length": 80,
47
+ "heading_line_length": 80,
48
+ "code_block_line_length": 80
49
+ },
50
+ "commands-show-output": true,
51
+ "no-missing-space-atx": true,
52
+ "no-multiple-space-atx": true,
53
+ "no-missing-space-closed-atx": true,
54
+ "no-multiple-space-closed-atx": true,
55
+ "blanks-around-headers": false,
56
+ "header-start-left": true,
57
+ "no-duplicate-heading": true,
58
+ "single-h1": false,
59
+ "no-trailing-punctuation": {
60
+ "punctuation": ".,:!?"
61
+ },
62
+ "no-multiple-space-blockquote": true,
63
+ "no-blanks-blockquote": false,
64
+ "ol-prefix": {
65
+ "style": "one"
66
+ },
67
+ "list-marker-space": {
68
+ "ul_single": 1,
69
+ "ol_single": 1,
70
+ "ul_multi": 1,
71
+ "ol_multi": 1
72
+ },
73
+ "no-empty-code-blocks": true,
74
+ "no-empty-lists": true,
75
+ "no-inline-html": true,
76
+ "no-bare-urls": true,
77
+ "hr-style": {
78
+ "style": "---"
79
+ },
80
+ "no-emphasis-as-header": false,
81
+ "no-space-in-emphasis": true,
82
+ "no-space-in-code": true,
83
+ "no-space-in-links": false,
84
+ "fenced-code-language": true,
85
+ "first-line-h1": false,
86
+ "no-empty-links": true,
87
+ "required-headers": false,
88
+ "proper-names": false,
89
+ "no-alt-text": false,
90
+ "code-block-style": {
91
+ "style": "fenced"
92
+ },
93
+ "single-trailing-newline": true,
94
+ "code-fence-style": {
95
+ "style": "backtick"
96
+ },
97
+ "emphasis-style": {
98
+ "style": "consistent"
99
+ },
100
+ "strong-style": {
101
+ "style": "asterisk"
102
+ },
103
+ "link-fragments": true,
104
+ "reference-links-images": {
105
+ "shortcut_syntax": false
106
+ },
107
+ "link-image-reference-definitions": {
108
+ "ignored_definitions": [
109
+ "//"
110
+ ]
111
+ },
112
+ "link-image-style": {
113
+ "autolink": true,
114
+ "collapsed": true,
115
+ "full": true,
116
+ "inline": true,
117
+ "shortcut": true,
118
+ "url_inline": true
119
+ },
120
+ "table-pipe-style": {
121
+ "style": "consistent"
122
+ },
123
+ "table-column-count": true,
124
+ "blanks-around-tables": true,
125
+ "spaces-around-links": {
126
+ "both": true
127
+ }
128
+ };
129
+
130
+ // src/index.ts
131
+ var offByDefault = [];
132
+ var baseConfig = {
133
+ ...markdownlintConfig
134
+ };
135
+ for (const rule of rules) {
136
+ const ruleName = rule?.names[1];
137
+ if (ruleName) {
138
+ baseConfig[ruleName] = offByDefault.includes(ruleName) ? false : true;
139
+ }
140
+ }
141
+ var init = /* @__PURE__ */ __name(function init2(defaultConfig) {
142
+ return defu(defaultConfig, baseConfig);
143
+ }, "init");
144
+ var rules2 = [
145
+ ...rules
146
+ ];
147
+ var config = baseConfig;
148
+ var index_default = config;
149
+ export {
150
+ config,
151
+ index_default as default,
152
+ init,
153
+ rules2 as rules
154
+ };
@@ -0,0 +1,5 @@
1
+ import { S as SS01 } from './no-default-alt-text.mjs';
2
+
3
+ declare const rules: (typeof SS01)[];
4
+
5
+ export { rules };
@@ -0,0 +1,5 @@
1
+ import { S as SS01 } from './no-default-alt-text.js';
2
+
3
+ declare const rules: (typeof SS01)[];
4
+
5
+ export { rules };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZPSREAWVjs = require('../chunk-ZPSREAWV.js');
4
+ require('../chunk-T2GN3E2Q.js');
5
+ require('../chunk-ZD5PYAVS.js');
6
+ require('../chunk-CSEVGJXW.js');
7
+ require('../chunk-5BKT4CS5.js');
8
+
9
+
10
+ exports.rules = _chunkZPSREAWVjs.rules;
@@ -0,0 +1,10 @@
1
+ import {
2
+ rules
3
+ } from "../chunk-KF4NZASG.mjs";
4
+ import "../chunk-T5XN24SU.mjs";
5
+ import "../chunk-UP2FAX2A.mjs";
6
+ import "../chunk-BLA57FQS.mjs";
7
+ import "../chunk-A3UDIEI3.mjs";
8
+ export {
9
+ rules
10
+ };
@@ -0,0 +1,5 @@
1
+ declare namespace SS01 {
2
+ export { };
3
+ }
4
+
5
+ export { SS01 as S };
@@ -0,0 +1,5 @@
1
+ declare namespace SS01 {
2
+ export { };
3
+ }
4
+
5
+ export { SS01 as S };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkT2GN3E2Qjs = require('../chunk-T2GN3E2Q.js');
4
+ require('../chunk-5BKT4CS5.js');
5
+ exports. default = _chunkT2GN3E2Qjs.require_no_default_alt_text.call(void 0, );
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_no_default_alt_text
3
+ } from "../chunk-T5XN24SU.mjs";
4
+ import "../chunk-A3UDIEI3.mjs";
5
+ export default require_no_default_alt_text();
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkZD5PYAVSjs = require('../chunk-ZD5PYAVS.js');
4
+ require('../chunk-5BKT4CS5.js');
5
+ exports. default = _chunkZD5PYAVSjs.require_no_empty_alt_text.call(void 0, );
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_no_empty_alt_text
3
+ } from "../chunk-UP2FAX2A.mjs";
4
+ import "../chunk-A3UDIEI3.mjs";
5
+ export default require_no_empty_alt_text();
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkCSEVGJXWjs = require('../chunk-CSEVGJXW.js');
4
+ require('../chunk-5BKT4CS5.js');
5
+ exports. default = _chunkCSEVGJXWjs.require_no_generic_link_text.call(void 0, );
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_no_generic_link_text
3
+ } from "../chunk-BLA57FQS.mjs";
4
+ import "../chunk-A3UDIEI3.mjs";
5
+ export default require_no_generic_link_text();
package/package.json CHANGED
@@ -1 +1,97 @@
1
- {"name":"@storm-software/markdownlint","version":"0.12.8","type":"commonjs","description":"⚡An opinionated collection of markdownlint rules used by Storm Software.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops.git","directory":"packages/markdownlint"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"license":"Apache-2.0","private":false,"keywords":["markdownlint","markdownlint-cli","markdownlint-cli2","monorepo","open-system","storm","storm-ops","storm-stack","stormstack","sullivanpj"],"dependencies":{"lodash":"4.17.21"},"devDependencies":{"@types/node":"^22.10.2"},"publishConfig":{"access":"public"}}
1
+ {
2
+ "name": "@storm-software/markdownlint",
3
+ "version": "0.13.0",
4
+ "description": "An opinionated collection of markdownlint rules used by Storm Software.",
5
+ "repository": {
6
+ "type": "github",
7
+ "url": "https://github.com/storm-software/storm-ops.git",
8
+ "directory": "packages/markdownlint"
9
+ },
10
+ "homepage": "https://stormsoftware.com",
11
+ "bugs": "https://github.com/storm-software/storm-ops/issues",
12
+ "author": {
13
+ "name": "Storm Software",
14
+ "email": "contact@stormsoftware.com",
15
+ "url": "https://stormsoftware.com"
16
+ },
17
+ "maintainers": [
18
+ {
19
+ "name": "Storm Software",
20
+ "email": "contact@stormsoftware.com",
21
+ "url": "https://stormsoftware.com"
22
+ },
23
+ {
24
+ "name": "Pat Sullivan",
25
+ "email": "admin@stormsoftware.com",
26
+ "url": "https://patsullivan.org"
27
+ }
28
+ ],
29
+ "contributors": [
30
+ {
31
+ "name": "Storm Software",
32
+ "email": "contact@stormsoftware.com",
33
+ "url": "https://stormsoftware.com"
34
+ }
35
+ ],
36
+ "funding": {
37
+ "type": "github",
38
+ "url": "https://github.com/sponsors/storm-software"
39
+ },
40
+ "license": "Apache-2.0",
41
+ "private": false,
42
+ "packageManager": "pnpm@9.15.2",
43
+ "engines": { "node": ">=22.4.0", "pnpm": ">=9.15.2" },
44
+ "main": "./dist/index.cjs",
45
+ "module": "./dist/index.js",
46
+ "exports": {
47
+ "./package.json": "./package.json",
48
+ ".": {
49
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
50
+ "require": {
51
+ "types": "./dist/index.d.cts",
52
+ "default": "./dist/index.cjs"
53
+ },
54
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
55
+ },
56
+ "./index": {
57
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
58
+ "require": {
59
+ "types": "./dist/index.d.cts",
60
+ "default": "./dist/index.cjs"
61
+ },
62
+ "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
63
+ },
64
+ "./rules/*": {
65
+ "import": {
66
+ "types": "./dist/rules/*.d.ts",
67
+ "default": "./dist/rules/*.js"
68
+ },
69
+ "require": {
70
+ "types": "./dist/rules/*.d.cts",
71
+ "default": "./dist/rules/*.cjs"
72
+ },
73
+ "default": {
74
+ "types": "./dist/rules/*.d.ts",
75
+ "default": "./dist/rules/*.js"
76
+ }
77
+ },
78
+ "./config/*": "./config/*"
79
+ },
80
+ "types": "./dist/index.d.ts",
81
+ "files": ["dist/**/*"],
82
+ "keywords": [
83
+ "markdownlint",
84
+ "markdownlint-cli",
85
+ "markdownlint-cli2",
86
+ "monorepo",
87
+ "open-system",
88
+ "storm",
89
+ "storm-ops",
90
+ "storm-stack",
91
+ "stormstack",
92
+ "sullivanpj"
93
+ ],
94
+ "dependencies": { "defu": "6.1.4" },
95
+ "devDependencies": { "@types/node": "^22.10.2", "tsup": "8.3.5" },
96
+ "publishConfig": { "access": "public" }
97
+ }