@html-validate/commitlint-config 3.0.29 → 3.1.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/dist/config.js ADDED
@@ -0,0 +1,301 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+
28
+ // node_modules/@commitlint/types/lib/ensure.js
29
+ var require_ensure = __commonJS({
30
+ "node_modules/@commitlint/types/lib/ensure.js"(exports2) {
31
+ "use strict";
32
+ Object.defineProperty(exports2, "__esModule", { value: true });
33
+ }
34
+ });
35
+
36
+ // node_modules/@commitlint/types/lib/format.js
37
+ var require_format = __commonJS({
38
+ "node_modules/@commitlint/types/lib/format.js"(exports2) {
39
+ "use strict";
40
+ Object.defineProperty(exports2, "__esModule", { value: true });
41
+ }
42
+ });
43
+
44
+ // node_modules/@commitlint/types/lib/is-ignored.js
45
+ var require_is_ignored = __commonJS({
46
+ "node_modules/@commitlint/types/lib/is-ignored.js"(exports2) {
47
+ "use strict";
48
+ Object.defineProperty(exports2, "__esModule", { value: true });
49
+ }
50
+ });
51
+
52
+ // node_modules/@commitlint/types/lib/lint.js
53
+ var require_lint = __commonJS({
54
+ "node_modules/@commitlint/types/lib/lint.js"(exports2) {
55
+ "use strict";
56
+ Object.defineProperty(exports2, "__esModule", { value: true });
57
+ }
58
+ });
59
+
60
+ // node_modules/@commitlint/types/lib/load.js
61
+ var require_load = __commonJS({
62
+ "node_modules/@commitlint/types/lib/load.js"(exports2) {
63
+ "use strict";
64
+ Object.defineProperty(exports2, "__esModule", { value: true });
65
+ }
66
+ });
67
+
68
+ // node_modules/@commitlint/types/lib/parse.js
69
+ var require_parse = __commonJS({
70
+ "node_modules/@commitlint/types/lib/parse.js"(exports2) {
71
+ "use strict";
72
+ Object.defineProperty(exports2, "__esModule", { value: true });
73
+ }
74
+ });
75
+
76
+ // node_modules/@commitlint/types/lib/prompt.js
77
+ var require_prompt = __commonJS({
78
+ "node_modules/@commitlint/types/lib/prompt.js"(exports2) {
79
+ "use strict";
80
+ Object.defineProperty(exports2, "__esModule", { value: true });
81
+ }
82
+ });
83
+
84
+ // node_modules/@commitlint/types/lib/rules.js
85
+ var require_rules = __commonJS({
86
+ "node_modules/@commitlint/types/lib/rules.js"(exports2) {
87
+ "use strict";
88
+ Object.defineProperty(exports2, "__esModule", { value: true });
89
+ exports2.RuleConfigQuality = exports2.RuleConfigSeverity = void 0;
90
+ var RuleConfigSeverity;
91
+ (function(RuleConfigSeverity2) {
92
+ RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
93
+ RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
94
+ RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
95
+ })(RuleConfigSeverity || (exports2.RuleConfigSeverity = RuleConfigSeverity = {}));
96
+ var RuleConfigQuality;
97
+ (function(RuleConfigQuality2) {
98
+ RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
99
+ RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
100
+ })(RuleConfigQuality || (exports2.RuleConfigQuality = RuleConfigQuality = {}));
101
+ }
102
+ });
103
+
104
+ // node_modules/@commitlint/types/lib/index.js
105
+ var require_lib = __commonJS({
106
+ "node_modules/@commitlint/types/lib/index.js"(exports2) {
107
+ "use strict";
108
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
109
+ if (k2 === void 0)
110
+ k2 = k;
111
+ var desc = Object.getOwnPropertyDescriptor(m, k);
112
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
113
+ desc = { enumerable: true, get: function() {
114
+ return m[k];
115
+ } };
116
+ }
117
+ Object.defineProperty(o, k2, desc);
118
+ } : function(o, m, k, k2) {
119
+ if (k2 === void 0)
120
+ k2 = k;
121
+ o[k2] = m[k];
122
+ });
123
+ var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
124
+ for (var p in m)
125
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
126
+ __createBinding(exports3, m, p);
127
+ };
128
+ Object.defineProperty(exports2, "__esModule", { value: true });
129
+ __exportStar(require_ensure(), exports2);
130
+ __exportStar(require_format(), exports2);
131
+ __exportStar(require_is_ignored(), exports2);
132
+ __exportStar(require_lint(), exports2);
133
+ __exportStar(require_load(), exports2);
134
+ __exportStar(require_parse(), exports2);
135
+ __exportStar(require_prompt(), exports2);
136
+ __exportStar(require_rules(), exports2);
137
+ }
138
+ });
139
+
140
+ // node_modules/@commitlint/config-conventional/lib/index.js
141
+ var require_lib2 = __commonJS({
142
+ "node_modules/@commitlint/config-conventional/lib/index.js"(exports2, module2) {
143
+ "use strict";
144
+ var types_1 = require_lib();
145
+ module2.exports = {
146
+ parserPreset: "conventional-changelog-conventionalcommits",
147
+ rules: {
148
+ "body-leading-blank": [types_1.RuleConfigSeverity.Warning, "always"],
149
+ "body-max-line-length": [types_1.RuleConfigSeverity.Error, "always", 100],
150
+ "footer-leading-blank": [types_1.RuleConfigSeverity.Warning, "always"],
151
+ "footer-max-line-length": [
152
+ types_1.RuleConfigSeverity.Error,
153
+ "always",
154
+ 100
155
+ ],
156
+ "header-max-length": [types_1.RuleConfigSeverity.Error, "always", 100],
157
+ "header-trim": [types_1.RuleConfigSeverity.Error, "always"],
158
+ "subject-case": [
159
+ types_1.RuleConfigSeverity.Error,
160
+ "never",
161
+ ["sentence-case", "start-case", "pascal-case", "upper-case"]
162
+ ],
163
+ "subject-empty": [types_1.RuleConfigSeverity.Error, "never"],
164
+ "subject-full-stop": [types_1.RuleConfigSeverity.Error, "never", "."],
165
+ "type-case": [types_1.RuleConfigSeverity.Error, "always", "lower-case"],
166
+ "type-empty": [types_1.RuleConfigSeverity.Error, "never"],
167
+ "type-enum": [
168
+ types_1.RuleConfigSeverity.Error,
169
+ "always",
170
+ [
171
+ "build",
172
+ "chore",
173
+ "ci",
174
+ "docs",
175
+ "feat",
176
+ "fix",
177
+ "perf",
178
+ "refactor",
179
+ "revert",
180
+ "style",
181
+ "test"
182
+ ]
183
+ ]
184
+ },
185
+ prompt: {
186
+ questions: {
187
+ type: {
188
+ description: "Select the type of change that you're committing",
189
+ enum: {
190
+ feat: {
191
+ description: "A new feature",
192
+ title: "Features",
193
+ emoji: "\u2728"
194
+ },
195
+ fix: {
196
+ description: "A bug fix",
197
+ title: "Bug Fixes",
198
+ emoji: "\u{1F41B}"
199
+ },
200
+ docs: {
201
+ description: "Documentation only changes",
202
+ title: "Documentation",
203
+ emoji: "\u{1F4DA}"
204
+ },
205
+ style: {
206
+ description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
207
+ title: "Styles",
208
+ emoji: "\u{1F48E}"
209
+ },
210
+ refactor: {
211
+ description: "A code change that neither fixes a bug nor adds a feature",
212
+ title: "Code Refactoring",
213
+ emoji: "\u{1F4E6}"
214
+ },
215
+ perf: {
216
+ description: "A code change that improves performance",
217
+ title: "Performance Improvements",
218
+ emoji: "\u{1F680}"
219
+ },
220
+ test: {
221
+ description: "Adding missing tests or correcting existing tests",
222
+ title: "Tests",
223
+ emoji: "\u{1F6A8}"
224
+ },
225
+ build: {
226
+ description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
227
+ title: "Builds",
228
+ emoji: "\u{1F6E0}"
229
+ },
230
+ ci: {
231
+ description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
232
+ title: "Continuous Integrations",
233
+ emoji: "\u2699\uFE0F"
234
+ },
235
+ chore: {
236
+ description: "Other changes that don't modify src or test files",
237
+ title: "Chores",
238
+ emoji: "\u267B\uFE0F"
239
+ },
240
+ revert: {
241
+ description: "Reverts a previous commit",
242
+ title: "Reverts",
243
+ emoji: "\u{1F5D1}"
244
+ }
245
+ }
246
+ },
247
+ scope: {
248
+ description: "What is the scope of this change (e.g. component or file name)"
249
+ },
250
+ subject: {
251
+ description: "Write a short, imperative tense description of the change"
252
+ },
253
+ body: {
254
+ description: "Provide a longer description of the change"
255
+ },
256
+ isBreaking: {
257
+ description: "Are there any breaking changes?"
258
+ },
259
+ breakingBody: {
260
+ description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself"
261
+ },
262
+ breaking: {
263
+ description: "Describe the breaking changes"
264
+ },
265
+ isIssueAffected: {
266
+ description: "Does this change affect any open issues?"
267
+ },
268
+ issuesBody: {
269
+ description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself"
270
+ },
271
+ issues: {
272
+ description: 'Add issue references (e.g. "fix #123", "re #123".)'
273
+ }
274
+ }
275
+ }
276
+ };
277
+ }
278
+ });
279
+
280
+ // src/config.ts
281
+ var import_node_path = __toESM(require("node:path"));
282
+ var import_node_util = require("node:util");
283
+ var preset = require_lib2();
284
+ var distDir = __dirname;
285
+ var config = {
286
+ ...preset,
287
+ parserPreset: import_node_path.default.join(distDir, "parser-preset.js"),
288
+ formatter: import_node_path.default.join(distDir, "formatter.js"),
289
+ rules: {
290
+ ...preset.rules,
291
+ "header-max-length": [2, "always", 120]
292
+ }
293
+ };
294
+ if (require.main === module) {
295
+ const prettyConfig = (0, import_node_util.inspect)(config, {
296
+ colors: process.stdout.isTTY,
297
+ depth: 8
298
+ });
299
+ console.log(prettyConfig);
300
+ }
301
+ module.exports = config;