@commencis/commitlint-config 2.0.0 → 3.0.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +48 -58
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +54 -0
- package/package.json +7 -9
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @commencis/commitlint-config
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [BreakingChange]: Introducing v3 - With cleaner dependencies and structure. Check readme files for implementations. ([#414](https://github.com/Commencis/js-toolkit/pull/414))
|
|
8
|
+
|
|
9
|
+
## 2.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- chore: update minor dependencies, node to v24.12 and pnpm to v10.25 ([#408](https://github.com/Commencis/js-toolkit/pull/408))
|
|
14
|
+
|
|
3
15
|
## 2.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1,65 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
1
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
//#region ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
|
|
3
|
+
/**
|
|
4
|
+
* Rules always have a severity.
|
|
5
|
+
* Severity indicates what to do if the rule is found to be broken
|
|
6
|
+
* 0 - Disable this rule
|
|
7
|
+
* 1 - Warn for violations
|
|
8
|
+
* 2 - Error for violations
|
|
9
|
+
*/
|
|
28
10
|
var RuleConfigSeverity;
|
|
29
|
-
(function(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
(function(RuleConfigSeverity$1) {
|
|
12
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Disabled"] = 0] = "Disabled";
|
|
13
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Warning"] = 1] = "Warning";
|
|
14
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Error"] = 2] = "Error";
|
|
33
15
|
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
34
16
|
var RuleConfigQuality;
|
|
35
|
-
(function(
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
(function(RuleConfigQuality$1) {
|
|
18
|
+
RuleConfigQuality$1[RuleConfigQuality$1["User"] = 0] = "User";
|
|
19
|
+
RuleConfigQuality$1[RuleConfigQuality$1["Qualified"] = 1] = "Qualified";
|
|
38
20
|
})(RuleConfigQuality || (RuleConfigQuality = {}));
|
|
39
21
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/index.ts
|
|
24
|
+
const config = {
|
|
25
|
+
extends: ["@commitlint/config-conventional"],
|
|
26
|
+
rules: {
|
|
27
|
+
"scope-case": [
|
|
28
|
+
RuleConfigSeverity.Error,
|
|
29
|
+
"always",
|
|
30
|
+
"lower-case"
|
|
31
|
+
],
|
|
32
|
+
"type-enum": [
|
|
33
|
+
RuleConfigSeverity.Error,
|
|
34
|
+
"always",
|
|
35
|
+
[
|
|
36
|
+
"build",
|
|
37
|
+
"chore",
|
|
38
|
+
"ci",
|
|
39
|
+
"docs",
|
|
40
|
+
"feat",
|
|
41
|
+
"fix",
|
|
42
|
+
"perf",
|
|
43
|
+
"refactor",
|
|
44
|
+
"release",
|
|
45
|
+
"revert",
|
|
46
|
+
"style",
|
|
47
|
+
"test"
|
|
48
|
+
]
|
|
49
|
+
]
|
|
50
|
+
}
|
|
64
51
|
};
|
|
65
|
-
var
|
|
52
|
+
var src_default = config;
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
module.exports = src_default;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@commitlint+types@20.2.0/node_modules/@commitlint/types/lib/rules.js
|
|
2
|
+
/**
|
|
3
|
+
* Rules always have a severity.
|
|
4
|
+
* Severity indicates what to do if the rule is found to be broken
|
|
5
|
+
* 0 - Disable this rule
|
|
6
|
+
* 1 - Warn for violations
|
|
7
|
+
* 2 - Error for violations
|
|
8
|
+
*/
|
|
9
|
+
var RuleConfigSeverity;
|
|
10
|
+
(function(RuleConfigSeverity$1) {
|
|
11
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Disabled"] = 0] = "Disabled";
|
|
12
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Warning"] = 1] = "Warning";
|
|
13
|
+
RuleConfigSeverity$1[RuleConfigSeverity$1["Error"] = 2] = "Error";
|
|
14
|
+
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
15
|
+
var RuleConfigQuality;
|
|
16
|
+
(function(RuleConfigQuality$1) {
|
|
17
|
+
RuleConfigQuality$1[RuleConfigQuality$1["User"] = 0] = "User";
|
|
18
|
+
RuleConfigQuality$1[RuleConfigQuality$1["Qualified"] = 1] = "Qualified";
|
|
19
|
+
})(RuleConfigQuality || (RuleConfigQuality = {}));
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/index.ts
|
|
23
|
+
const config = {
|
|
24
|
+
extends: ["@commitlint/config-conventional"],
|
|
25
|
+
rules: {
|
|
26
|
+
"scope-case": [
|
|
27
|
+
RuleConfigSeverity.Error,
|
|
28
|
+
"always",
|
|
29
|
+
"lower-case"
|
|
30
|
+
],
|
|
31
|
+
"type-enum": [
|
|
32
|
+
RuleConfigSeverity.Error,
|
|
33
|
+
"always",
|
|
34
|
+
[
|
|
35
|
+
"build",
|
|
36
|
+
"chore",
|
|
37
|
+
"ci",
|
|
38
|
+
"docs",
|
|
39
|
+
"feat",
|
|
40
|
+
"fix",
|
|
41
|
+
"perf",
|
|
42
|
+
"refactor",
|
|
43
|
+
"release",
|
|
44
|
+
"revert",
|
|
45
|
+
"style",
|
|
46
|
+
"test"
|
|
47
|
+
]
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var src_default = config;
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { src_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commencis/commitlint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Commencis Commitlint config",
|
|
5
5
|
"author": "Commencis WEB Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "
|
|
14
|
+
"url": "https://github.com/Commencis/js-toolkit.git",
|
|
15
15
|
"directory": "packages/commitlint-config"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
@@ -29,17 +29,15 @@
|
|
|
29
29
|
"require": "./dist/index.cjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@commitlint/config-conventional": "20.
|
|
32
|
+
"@commitlint/config-conventional": "20.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@commencis/ts-config": "0.0
|
|
36
|
-
"@commitlint/types": "20.
|
|
37
|
-
"tsup": "8.5.1",
|
|
38
|
-
"typescript": "5.9.3"
|
|
35
|
+
"@commencis/ts-config": "1.0.0",
|
|
36
|
+
"@commitlint/types": "20.2.0"
|
|
39
37
|
},
|
|
40
38
|
"scripts": {
|
|
41
|
-
"dev": "
|
|
42
|
-
"build": "
|
|
39
|
+
"dev": "tsdown --watch",
|
|
40
|
+
"build": "tsdown",
|
|
43
41
|
"test": "vitest",
|
|
44
42
|
"lint:types": "tsc --noEmit"
|
|
45
43
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@commitlint+types@20.0.0/node_modules/@commitlint/types/lib/rules.js
|
|
2
|
-
var RuleConfigSeverity;
|
|
3
|
-
(function(RuleConfigSeverity2) {
|
|
4
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Disabled"] = 0] = "Disabled";
|
|
5
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Warning"] = 1] = "Warning";
|
|
6
|
-
RuleConfigSeverity2[RuleConfigSeverity2["Error"] = 2] = "Error";
|
|
7
|
-
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
|
|
8
|
-
var RuleConfigQuality;
|
|
9
|
-
(function(RuleConfigQuality2) {
|
|
10
|
-
RuleConfigQuality2[RuleConfigQuality2["User"] = 0] = "User";
|
|
11
|
-
RuleConfigQuality2[RuleConfigQuality2["Qualified"] = 1] = "Qualified";
|
|
12
|
-
})(RuleConfigQuality || (RuleConfigQuality = {}));
|
|
13
|
-
|
|
14
|
-
// src/index.ts
|
|
15
|
-
var config = {
|
|
16
|
-
extends: ["@commitlint/config-conventional"],
|
|
17
|
-
rules: {
|
|
18
|
-
"scope-case": [RuleConfigSeverity.Error, "always", "lower-case"],
|
|
19
|
-
"type-enum": [
|
|
20
|
-
RuleConfigSeverity.Error,
|
|
21
|
-
"always",
|
|
22
|
-
[
|
|
23
|
-
"build",
|
|
24
|
-
"chore",
|
|
25
|
-
"ci",
|
|
26
|
-
"docs",
|
|
27
|
-
"feat",
|
|
28
|
-
"fix",
|
|
29
|
-
"perf",
|
|
30
|
-
"refactor",
|
|
31
|
-
"release",
|
|
32
|
-
"revert",
|
|
33
|
-
"style",
|
|
34
|
-
"test"
|
|
35
|
-
]
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var index_default = config;
|
|
40
|
-
export {
|
|
41
|
-
index_default as default
|
|
42
|
-
};
|