@adamhl8/configs 1.1.0 → 1.1.1
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OptionalMergeConfigFn } from "../utils.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UserConfig } from "@commitlint/types";
|
|
3
3
|
//#region src/configs/commitlint.base.d.ts
|
|
4
4
|
declare const commitlintConfig: OptionalMergeConfigFn<UserConfig, {
|
|
5
5
|
readonly extends: ["@commitlint/config-conventional"];
|
|
6
6
|
readonly rules: {
|
|
7
|
-
readonly "type-enum": readonly [
|
|
7
|
+
readonly "type-enum": readonly [2, "always", string[]];
|
|
8
8
|
};
|
|
9
9
|
}>;
|
|
10
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commitlint.base.d.ts","names":[],"sources":["../../src/configs/commitlint.base.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"commitlint.base.d.ts","names":[],"sources":["../../src/configs/commitlint.base.ts"],"mappings":";;;cAkBa,kBAAgB,sBAAA;;;aAJzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createMergeConfigFn } from "../utils.js";
|
|
2
2
|
import conventional from "@commitlint/config-conventional";
|
|
3
|
-
import { RuleConfigSeverity } from "@commitlint/types";
|
|
4
3
|
//#region src/configs/commitlint.base.ts
|
|
5
4
|
const [_severity, _condition, conventionalTypes] = conventional.rules["type-enum"];
|
|
6
5
|
const EXCLUDED_TYPES = /* @__PURE__ */ new Set([
|
|
@@ -8,17 +7,16 @@ const EXCLUDED_TYPES = /* @__PURE__ */ new Set([
|
|
|
8
7
|
"style",
|
|
9
8
|
"build"
|
|
10
9
|
]);
|
|
11
|
-
const commitTypes = [
|
|
12
|
-
...conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type)),
|
|
13
|
-
"improve",
|
|
14
|
-
"release"
|
|
15
|
-
];
|
|
16
10
|
const commitlintConfig = createMergeConfigFn({
|
|
17
11
|
extends: ["@commitlint/config-conventional"],
|
|
18
12
|
rules: { "type-enum": [
|
|
19
|
-
|
|
13
|
+
2,
|
|
20
14
|
"always",
|
|
21
|
-
|
|
15
|
+
[
|
|
16
|
+
...conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type)),
|
|
17
|
+
"improve",
|
|
18
|
+
"release"
|
|
19
|
+
]
|
|
22
20
|
] }
|
|
23
21
|
});
|
|
24
22
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commitlint.base.js","names":[],"sources":["../../src/configs/commitlint.base.ts"],"sourcesContent":["import conventional from \"@commitlint/config-conventional\"\nimport
|
|
1
|
+
{"version":3,"file":"commitlint.base.js","names":[],"sources":["../../src/configs/commitlint.base.ts"],"sourcesContent":["import conventional from \"@commitlint/config-conventional\"\nimport type { UserConfig } from \"@commitlint/types\"\n\nimport { createMergeConfigFn } from \"#utils.ts\"\n\nconst [_severity, _condition, conventionalTypes] = conventional.rules[\"type-enum\"]\n\nconst EXCLUDED_TYPES = new Set([\"test\", \"style\", \"build\"])\nconst filteredTypes = conventionalTypes.filter((type) => !EXCLUDED_TYPES.has(type))\nconst commitTypes = [...filteredTypes, \"improve\", \"release\"]\n\nconst baseConfig = {\n extends: [\"@commitlint/config-conventional\"],\n rules: {\n \"type-enum\": [2, \"always\", commitTypes],\n },\n} as const satisfies UserConfig\n\nexport const commitlintConfig = createMergeConfigFn<UserConfig, typeof baseConfig>(baseConfig)\n"],"mappings":";;;AAKA,MAAM,CAAC,WAAW,YAAY,qBAAqB,aAAa,MAAM;AAEtE,MAAM,iCAAiB,IAAI,IAAI;CAAC;CAAQ;CAAS;AAAO,CAAC;AAWzD,MAAa,mBAAmB,oBAAmD;CANjF,SAAS,CAAC,iCAAiC;CAC3C,OAAO,EACL,aAAa;EAAC;EAAG;EAAU;GALV,GADC,kBAAkB,QAAQ,SAAS,CAAC,eAAe,IAAI,IAAI,CAC7C;GAAG;GAAW;EAKT;CAAC,EACxC;AAGiF,CAAU"}
|