@html-validate/commitlint-config 3.0.30 → 3.2.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,105 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "type": "object",
4
+ "definitions": {
5
+ "rule": {
6
+ "oneOf": [
7
+ {
8
+ "description": "A rule",
9
+ "type": "array",
10
+ "items": [
11
+ {
12
+ "description": "Level: 0 disables the rule. For 1 it will be considered a warning, for 2 an error",
13
+ "type": "number",
14
+ "enum": [0, 1, 2]
15
+ },
16
+ {
17
+ "description": "Applicable: always|never: never inverts the rule",
18
+ "type": "string",
19
+ "enum": ["always", "never"]
20
+ },
21
+ {
22
+ "description": "Value: the value for this rule"
23
+ }
24
+ ],
25
+ "minItems": 1,
26
+ "maxItems": 3,
27
+ "additionalItems": false
28
+ },
29
+ {
30
+ "description": "A rule",
31
+ "typeof": "function"
32
+ }
33
+ ]
34
+ }
35
+ },
36
+ "properties": {
37
+ "extends": {
38
+ "description": "Resolveable ids to commitlint configurations to extend",
39
+ "oneOf": [
40
+ {
41
+ "type": "array",
42
+ "items": { "type": "string" }
43
+ },
44
+ { "type": "string" }
45
+ ]
46
+ },
47
+ "parserPreset": {
48
+ "description": "Resolveable id to conventional-changelog parser preset to import and use",
49
+ "oneOf": [
50
+ { "type": "string" },
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "name": { "type": "string" },
55
+ "path": { "type": "string" },
56
+ "parserOpts": {}
57
+ },
58
+ "additionalProperties": true
59
+ },
60
+ { "typeof": "function" }
61
+ ]
62
+ },
63
+ "helpUrl": {
64
+ "description": "Custom URL to show upon failure",
65
+ "type": "string"
66
+ },
67
+ "formatter": {
68
+ "description": "Resolveable id to package, from node_modules, which formats the output",
69
+ "type": "string"
70
+ },
71
+ "rules": {
72
+ "description": "Rules to check against",
73
+ "type": "object",
74
+ "propertyNames": { "type": "string" },
75
+ "additionalProperties": { "$ref": "#/definitions/rule" }
76
+ },
77
+ "plugins": {
78
+ "description": "Resolveable ids of commitlint plugins from node_modules",
79
+ "type": "array",
80
+ "items": {
81
+ "anyOf": [
82
+ { "type": "string" },
83
+ {
84
+ "type": "object",
85
+ "required": ["rules"],
86
+ "properties": {
87
+ "rules": {
88
+ "type": "object"
89
+ }
90
+ }
91
+ }
92
+ ]
93
+ }
94
+ },
95
+ "ignores": {
96
+ "type": "array",
97
+ "items": { "typeof": "function" },
98
+ "description": "Additional commits to ignore, defined by ignore matchers"
99
+ },
100
+ "defaultIgnores": {
101
+ "description": "Whether commitlint uses the default ignore rules",
102
+ "type": "boolean"
103
+ }
104
+ }
105
+ }
package/dist/config.js ADDED
@@ -0,0 +1,181 @@
1
+
2
+ import { dirname as _$_dirname } from "node:path";
3
+ import { createRequire as _$_createRequire } from "node:module";
4
+ import { fileURLToPath as _$_fileURLToPath } from "node:url";
5
+
6
+ const require = _$_createRequire(import.meta.url);
7
+ const __dirname = _$_dirname(_$_fileURLToPath(import.meta.url));
8
+
9
+
10
+ // src/config.ts
11
+ import { fileURLToPath } from "node:url";
12
+ import { inspect } from "node:util";
13
+
14
+ // node_modules/@commitlint/types/lib/rules.js
15
+ var RuleConfigSeverity;
16
+ (function(RuleConfigSeverity2) {
17
+ RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
18
+ RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
19
+ RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
20
+ })(RuleConfigSeverity || (RuleConfigSeverity = {}));
21
+ var RuleConfigQuality;
22
+ (function(RuleConfigQuality2) {
23
+ RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
24
+ RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
25
+ })(RuleConfigQuality || (RuleConfigQuality = {}));
26
+
27
+ // node_modules/@commitlint/config-conventional/lib/index.js
28
+ var lib_default = {
29
+ parserPreset: "conventional-changelog-conventionalcommits",
30
+ rules: {
31
+ "body-leading-blank": [RuleConfigSeverity.Warning, "always"],
32
+ "body-max-line-length": [RuleConfigSeverity.Error, "always", 100],
33
+ "footer-leading-blank": [RuleConfigSeverity.Warning, "always"],
34
+ "footer-max-line-length": [
35
+ RuleConfigSeverity.Error,
36
+ "always",
37
+ 100
38
+ ],
39
+ "header-max-length": [RuleConfigSeverity.Error, "always", 100],
40
+ "header-trim": [RuleConfigSeverity.Error, "always"],
41
+ "subject-case": [
42
+ RuleConfigSeverity.Error,
43
+ "never",
44
+ ["sentence-case", "start-case", "pascal-case", "upper-case"]
45
+ ],
46
+ "subject-empty": [RuleConfigSeverity.Error, "never"],
47
+ "subject-full-stop": [RuleConfigSeverity.Error, "never", "."],
48
+ "type-case": [RuleConfigSeverity.Error, "always", "lower-case"],
49
+ "type-empty": [RuleConfigSeverity.Error, "never"],
50
+ "type-enum": [
51
+ RuleConfigSeverity.Error,
52
+ "always",
53
+ [
54
+ "build",
55
+ "chore",
56
+ "ci",
57
+ "docs",
58
+ "feat",
59
+ "fix",
60
+ "perf",
61
+ "refactor",
62
+ "revert",
63
+ "style",
64
+ "test"
65
+ ]
66
+ ]
67
+ },
68
+ prompt: {
69
+ questions: {
70
+ type: {
71
+ description: "Select the type of change that you're committing",
72
+ enum: {
73
+ feat: {
74
+ description: "A new feature",
75
+ title: "Features",
76
+ emoji: "\u2728"
77
+ },
78
+ fix: {
79
+ description: "A bug fix",
80
+ title: "Bug Fixes",
81
+ emoji: "\u{1F41B}"
82
+ },
83
+ docs: {
84
+ description: "Documentation only changes",
85
+ title: "Documentation",
86
+ emoji: "\u{1F4DA}"
87
+ },
88
+ style: {
89
+ description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
90
+ title: "Styles",
91
+ emoji: "\u{1F48E}"
92
+ },
93
+ refactor: {
94
+ description: "A code change that neither fixes a bug nor adds a feature",
95
+ title: "Code Refactoring",
96
+ emoji: "\u{1F4E6}"
97
+ },
98
+ perf: {
99
+ description: "A code change that improves performance",
100
+ title: "Performance Improvements",
101
+ emoji: "\u{1F680}"
102
+ },
103
+ test: {
104
+ description: "Adding missing tests or correcting existing tests",
105
+ title: "Tests",
106
+ emoji: "\u{1F6A8}"
107
+ },
108
+ build: {
109
+ description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
110
+ title: "Builds",
111
+ emoji: "\u{1F6E0}"
112
+ },
113
+ ci: {
114
+ description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
115
+ title: "Continuous Integrations",
116
+ emoji: "\u2699\uFE0F"
117
+ },
118
+ chore: {
119
+ description: "Other changes that don't modify src or test files",
120
+ title: "Chores",
121
+ emoji: "\u267B\uFE0F"
122
+ },
123
+ revert: {
124
+ description: "Reverts a previous commit",
125
+ title: "Reverts",
126
+ emoji: "\u{1F5D1}"
127
+ }
128
+ }
129
+ },
130
+ scope: {
131
+ description: "What is the scope of this change (e.g. component or file name)"
132
+ },
133
+ subject: {
134
+ description: "Write a short, imperative tense description of the change"
135
+ },
136
+ body: {
137
+ description: "Provide a longer description of the change"
138
+ },
139
+ isBreaking: {
140
+ description: "Are there any breaking changes?"
141
+ },
142
+ breakingBody: {
143
+ description: "A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself"
144
+ },
145
+ breaking: {
146
+ description: "Describe the breaking changes"
147
+ },
148
+ isIssueAffected: {
149
+ description: "Does this change affect any open issues?"
150
+ },
151
+ issuesBody: {
152
+ description: "If issues are closed, the commit requires a body. Please enter a longer description of the commit itself"
153
+ },
154
+ issues: {
155
+ description: 'Add issue references (e.g. "fix #123", "re #123".)'
156
+ }
157
+ }
158
+ }
159
+ };
160
+
161
+ // src/config.ts
162
+ var config = {
163
+ ...lib_default,
164
+ parserPreset: fileURLToPath(new URL("parser-preset.js", import.meta.url)),
165
+ formatter: fileURLToPath(new URL("formatter.js", import.meta.url)),
166
+ rules: {
167
+ ...lib_default.rules,
168
+ "header-max-length": [2, "always", 120]
169
+ }
170
+ };
171
+ if (process.argv[1] === fileURLToPath(import.meta.url)) {
172
+ const prettyConfig = inspect(config, {
173
+ colors: process.stdout.isTTY,
174
+ depth: 8
175
+ });
176
+ console.log(prettyConfig);
177
+ }
178
+ var config_default = config;
179
+ export {
180
+ config_default as default
181
+ };