@theholocron/commitlint-config 6.1.1 → 7.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.
@@ -0,0 +1,13 @@
1
+ //#region index.d.ts
2
+ /**
3
+ * @see https://commitlint.js.org/reference/configuration.html
4
+ */
5
+ declare const config: {
6
+ extends: string[];
7
+ ignores: ((message: string) => boolean)[];
8
+ rules: {
9
+ "body-max-line-length": [0, "always", number];
10
+ };
11
+ };
12
+ //#endregion
13
+ export { config as default };
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ //#region index.ts
2
+ /**
3
+ * @see https://commitlint.js.org/reference/configuration.html
4
+ */
5
+ const config = {
6
+ extends: ["@commitlint/config-conventional"],
7
+ ignores: [(message) => /^chore\(deps(-dev)?\): Bump/.test(message)],
8
+ rules: { "body-max-line-length": [
9
+ 0,
10
+ "always",
11
+ Infinity
12
+ ] }
13
+ };
14
+ //#endregion
15
+ export { config as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/commitlint-config",
3
- "version": "6.1.1",
3
+ "version": "7.1.0",
4
4
  "description": "A CommitLint configuration for writing well-formatted and consistent Git commits.",
5
5
  "homepage": "https://github.com/theholocron/configs/tree/main/packages/commitlint-config#readme",
6
6
  "bugs": "https://github.com/theholocron/configs/issues",
@@ -10,15 +10,41 @@
10
10
  },
11
11
  "license": "GPL-3.0",
12
12
  "author": "Newton Koumantzelis",
13
+ "keywords": [
14
+ "commitlint",
15
+ "conventional-commits",
16
+ "git",
17
+ "commits",
18
+ "config",
19
+ "theholocron"
20
+ ],
13
21
  "type": "module",
14
- "main": "commitlint.config.js",
22
+ "main": "dist/index.js",
15
23
  "devDependencies": {
16
- "@commitlint/cli": "^19.8.1",
17
- "@commitlint/config-conventional": "^19.8.1"
24
+ "@commitlint/types": "^21.2.0",
25
+ "tsdown": "^0.22.8",
26
+ "typescript": "^5.9.3",
27
+ "vitest": "^4.0.0",
28
+ "@theholocron/vitest-config": "7.1.0",
29
+ "@theholocron/tsconfig": "7.1.0"
18
30
  },
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js",
35
+ "default": "./dist/index.js"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "files": [
40
+ "dist/"
41
+ ],
19
42
  "peerDependencies": {
20
- "@commitlint/cli": "^19",
21
- "@commitlint/config-conventional": "^19"
43
+ "@commitlint/cli": "^21",
44
+ "@commitlint/config-conventional": "^21"
45
+ },
46
+ "engines": {
47
+ "node": ">=22.0.0"
22
48
  },
23
49
  "publishConfig": {
24
50
  "access": "public"
@@ -26,6 +52,8 @@
26
52
  "releases": "https://github.com/theholocron/configs/releases",
27
53
  "wiki": "https://github.com/theholocron/configs/wiki",
28
54
  "scripts": {
29
- "test": "commitlint --from HEAD~1 --to HEAD --verbose"
55
+ "build": "tsdown",
56
+ "test": "vitest run",
57
+ "typecheck": "tsc --noEmit"
30
58
  }
31
59
  }
package/CHANGELOG.md DELETED
@@ -1,75 +0,0 @@
1
- # @theholocron/commitlint-config
2
-
3
- ## 4.1.0
4
-
5
- ## 4.0.0
6
-
7
- ### Major Changes
8
-
9
- - [`14a6658`](https://github.com/theholocron/configs/commit/14a6658dfccae1206f629783be6f7aed59b28ebf) Thanks [@iamnewton](https://github.com/iamnewton)! - update all dependencies to be latest
10
-
11
- ## 3.5.1
12
-
13
- ### Patch Changes
14
-
15
- - [`63a4c85`](https://github.com/theholocron/configs/commit/63a4c858b9e76566798aeb1dd45e4feddd83fb70) Thanks [@iamnewton](https://github.com/iamnewton)! - Remove registry url
16
-
17
- ## 3.4.4
18
-
19
- ### Patch Changes
20
-
21
- - [`2e3ce74`](https://github.com/theholocron/configs/commit/2e3ce74b54f83e344bcf79cb9e71fca0ed6e058e) Thanks [@iamnewton](https://github.com/iamnewton)! - Add in tsc as dependency
22
-
23
- ## 3.4.3
24
-
25
- ### Patch Changes
26
-
27
- - [`11f27c4`](https://github.com/theholocron/configs/commit/11f27c4c3db883ebb8141b7c4075e74887defc90) Thanks [@iamnewton](https://github.com/iamnewton)! - Add dependency to storybook config
28
-
29
- ## 3.4.2
30
-
31
- ### Patch Changes
32
-
33
- - [`d82832c`](https://github.com/theholocron/configs/commit/d82832c27aa3aa775365628bce98f82a5fe129b6) Thanks [@iamnewton](https://github.com/iamnewton)! - fix issue with deprecated prettier config values
34
-
35
- ## 3.4.1
36
-
37
- ### Patch Changes
38
-
39
- - [`55b8263`](https://github.com/theholocron/configs/commit/55b8263d8ab99d804e6e5a77d677f1ad0637b5e1) Thanks [@iamnewton](https://github.com/iamnewton)! - Fix issue with prettier config main export
40
-
41
- ## 3.4.0
42
-
43
- ### Minor Changes
44
-
45
- - [`6dfd8d4`](https://github.com/theholocron/configs/commit/6dfd8d4b1a58459d35af4253db59402e500f92b0) Thanks [@iamnewton](https://github.com/iamnewton)! - Update prettier to use module
46
-
47
- ## 3.3.0
48
-
49
- ### Minor Changes
50
-
51
- - [`30e50b0`](https://github.com/theholocron/configs/commit/30e50b000dd1f9ac61e3ad1c3abee2ab3a52e7ac) Thanks [@iamnewton](https://github.com/iamnewton)! - Add in stylelint
52
-
53
- ## 3.2.1
54
-
55
- ### Patch Changes
56
-
57
- - [`3d54f12`](https://github.com/theholocron/configs/commit/3d54f12618e8a6cc6ccc4559eb48ef402bb04d77) Thanks [@iamnewton](https://github.com/iamnewton)! - Fix the storybook config; its missing the index file from the export
58
-
59
- ## 3.2.0
60
-
61
- ### Minor Changes
62
-
63
- - [`46d40c1`](https://github.com/theholocron/configs/commit/46d40c17d963b3c81fd6fdf308da4228112f5fe4) Thanks [@iamnewton](https://github.com/iamnewton)! - Add more to eslint-config, add in storybook-config
64
-
65
- ## 3.1.0
66
-
67
- ### Minor Changes
68
-
69
- - [`4f8154a`](https://github.com/theholocron/configs/commit/4f8154a534d5d7668cd2659da322448f39646aed) Thanks [@iamnewton](https://github.com/iamnewton)! - Update to include Alex language linting in lint-staging
70
-
71
- ## 3.0.0
72
-
73
- ### Major Changes
74
-
75
- - [`88d7f99`](https://github.com/theholocron/configs/commit/88d7f995dd02cdbe63817ac0d13905d5aea3777a) Thanks [@iamnewton](https://github.com/iamnewton)! - Initial release
@@ -1,16 +0,0 @@
1
- /**
2
- * @see https://commitlint.js.org/reference/configuration.html
3
- * @type {import("@commitlint/types").UserConfig}
4
- */
5
- const config = {
6
- extends: ["@commitlint/config-conventional"],
7
- ignores: [(message) => /^chore\(deps(-dev)?\): Bump/.test(message)],
8
- rules: {
9
- // Trailers (Co-authored-by, Signed-off-by) are parsed as body text when
10
- // there is no body paragraph, causing false positives. header-max-length
11
- // covers the only line length that actually matters for readability.
12
- "body-max-line-length": [0, "always", Infinity],
13
- },
14
- };
15
-
16
- export default config;