@abinnovision/commitlint-config 2.1.0 → 2.2.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.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/index.cjs +72 -0
- package/dist/index.js +5 -26
- package/package.json +13 -13
- package/dist/index.mjs +0 -48
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.1](https://github.com/abinnovision/js-commons/compare/commitlint-config-v2.2.0...commitlint-config-v2.2.1) (2024-10-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use spaces for markdown files ([#349](https://github.com/abinnovision/js-commons/issues/349)) ([eeb8b33](https://github.com/abinnovision/js-commons/commit/eeb8b335916602b55ca02cfdea352bc296fa7ffb))
|
|
9
|
+
|
|
10
|
+
## [2.2.0](https://github.com/abinnovision/js-commons/compare/commitlint-config-v2.1.0...commitlint-config-v2.2.0) (2024-08-05)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* migrate to esm ([#278](https://github.com/abinnovision/js-commons/issues/278)) ([fed850d](https://github.com/abinnovision/js-commons/commit/fed850d979f7ba83fae75adadcfd0024f2acd242))
|
|
16
|
+
|
|
3
17
|
## [2.1.0](https://github.com/abinnovision/js-commons/compare/commitlint-config-v2.0.1...commitlint-config-v2.1.0) (2024-08-02)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
[Commitlint](https://commitlint.js.org/#/) config for all types of projects. The
|
|
4
4
|
config mostly inherits the
|
|
5
5
|
[Conventional config](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional).
|
|
6
|
-
There are just some increased limits to make them work with
|
|
7
|
-
|
|
6
|
+
There are just some increased limits to make them work with the tooling of AB
|
|
7
|
+
innovision.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
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 __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
default: () => src_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(src_exports);
|
|
36
|
+
var import_config_conventional = __toESM(require("@commitlint/config-conventional"), 1);
|
|
37
|
+
var config = {
|
|
38
|
+
...import_config_conventional.default,
|
|
39
|
+
rules: {
|
|
40
|
+
...import_config_conventional.default.rules,
|
|
41
|
+
/**
|
|
42
|
+
* Disable the rule to limit the body line length.
|
|
43
|
+
* This is because sometimes commit messages can contain structured data
|
|
44
|
+
* by some kind of tool (e.g. Dependabot), which can't be changed.
|
|
45
|
+
*/
|
|
46
|
+
"body-max-line-length": [0],
|
|
47
|
+
/**
|
|
48
|
+
* Add "deps" to the list of allowed commit types.
|
|
49
|
+
* This allows us to support the case where release-please should
|
|
50
|
+
* create releases for dependabot updates.
|
|
51
|
+
*/
|
|
52
|
+
"type-enum": [
|
|
53
|
+
2,
|
|
54
|
+
"always",
|
|
55
|
+
[
|
|
56
|
+
"build",
|
|
57
|
+
"chore",
|
|
58
|
+
"ci",
|
|
59
|
+
"docs",
|
|
60
|
+
"feat",
|
|
61
|
+
"fix",
|
|
62
|
+
"perf",
|
|
63
|
+
"refactor",
|
|
64
|
+
"revert",
|
|
65
|
+
"style",
|
|
66
|
+
"test",
|
|
67
|
+
"deps"
|
|
68
|
+
]
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var src_default = config;
|
package/dist/index.js
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
|
|
25
1
|
// src/index.ts
|
|
26
|
-
|
|
2
|
+
import ConventionalConfig from "@commitlint/config-conventional";
|
|
27
3
|
var config = {
|
|
28
4
|
...ConventionalConfig,
|
|
29
5
|
rules: {
|
|
@@ -59,4 +35,7 @@ var config = {
|
|
|
59
35
|
]
|
|
60
36
|
}
|
|
61
37
|
};
|
|
62
|
-
|
|
38
|
+
var src_default = config;
|
|
39
|
+
export {
|
|
40
|
+
src_default as default
|
|
41
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/commitlint-config",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"repository": {
|
|
5
6
|
"url": "https://github.com/abinnovision/js-commons"
|
|
6
7
|
},
|
|
@@ -12,13 +13,13 @@
|
|
|
12
13
|
},
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
15
|
-
"import": "./dist/index.
|
|
16
|
-
"require": "./dist/index.
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
17
18
|
"types": "./dist/index.d.ts"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
"main": "./dist/index.
|
|
21
|
-
"module": "./dist/index.
|
|
21
|
+
"main": "./dist/index.cjs",
|
|
22
|
+
"module": "./dist/index.js",
|
|
22
23
|
"types": "./dist/index.d.ts",
|
|
23
24
|
"files": [
|
|
24
25
|
"dist/"
|
|
@@ -41,15 +42,14 @@
|
|
|
41
42
|
},
|
|
42
43
|
"prettier": "@abinnovision/prettier-config",
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@commitlint/config-conventional": "^19.
|
|
45
|
+
"@commitlint/config-conventional": "^19.5.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@abinnovision/prettier-config": "^2.
|
|
48
|
-
"@commitlint/types": "^19.0
|
|
49
|
-
"eslint": "^
|
|
48
|
+
"@abinnovision/prettier-config": "^2.1.3",
|
|
49
|
+
"@commitlint/types": "^19.5.0",
|
|
50
|
+
"eslint": "^9.12.0",
|
|
50
51
|
"prettier": "^3.3.3",
|
|
51
|
-
"tsup": "^8.
|
|
52
|
-
"typescript": "^5.
|
|
53
|
-
}
|
|
54
|
-
"packageManager": "yarn@3.4.1"
|
|
52
|
+
"tsup": "^8.3.0",
|
|
53
|
+
"typescript": "^5.6.3"
|
|
54
|
+
}
|
|
55
55
|
}
|
package/dist/index.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
// src/index.ts
|
|
7
|
-
import * as ConventionalConfig from "@commitlint/config-conventional";
|
|
8
|
-
var require_src = __commonJS({
|
|
9
|
-
"src/index.ts"(exports, module) {
|
|
10
|
-
var config = {
|
|
11
|
-
...ConventionalConfig,
|
|
12
|
-
rules: {
|
|
13
|
-
...ConventionalConfig.rules,
|
|
14
|
-
/**
|
|
15
|
-
* Disable the rule to limit the body line length.
|
|
16
|
-
* This is because sometimes commit messages can contain structured data
|
|
17
|
-
* by some kind of tool (e.g. Dependabot), which can't be changed.
|
|
18
|
-
*/
|
|
19
|
-
"body-max-line-length": [0],
|
|
20
|
-
/**
|
|
21
|
-
* Add "deps" to the list of allowed commit types.
|
|
22
|
-
* This allows us to support the case where release-please should
|
|
23
|
-
* create releases for dependabot updates.
|
|
24
|
-
*/
|
|
25
|
-
"type-enum": [
|
|
26
|
-
2,
|
|
27
|
-
"always",
|
|
28
|
-
[
|
|
29
|
-
"build",
|
|
30
|
-
"chore",
|
|
31
|
-
"ci",
|
|
32
|
-
"docs",
|
|
33
|
-
"feat",
|
|
34
|
-
"fix",
|
|
35
|
-
"perf",
|
|
36
|
-
"refactor",
|
|
37
|
-
"revert",
|
|
38
|
-
"style",
|
|
39
|
-
"test",
|
|
40
|
-
"deps"
|
|
41
|
-
]
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
module.exports = config;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export default require_src();
|
|
File without changes
|