@pplancq/commitlint-config 4.0.1 → 4.0.3
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/README.md +2 -2
- package/bin/init.mjs +4 -4
- package/index.js +5 -5
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ As of version 3.x, this package is ESM-only. CommonJS (`require`) is no longer s
|
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
36
|
// .commitlintrc.js or commitlint.config.js
|
|
37
|
-
module.exports = { extends: [
|
|
37
|
+
module.exports = { extends: ["@pplancq/commitlint-config"] };
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
**New (ESM) usage:**
|
|
@@ -42,7 +42,7 @@ module.exports = { extends: ['@pplancq/commitlint-config'] };
|
|
|
42
42
|
```js
|
|
43
43
|
// commitlint.config.mjs (or commitlint.config.js when using "type": "module")
|
|
44
44
|
export default {
|
|
45
|
-
extends: [
|
|
45
|
+
extends: ["@pplancq/commitlint-config"],
|
|
46
46
|
};
|
|
47
47
|
```
|
|
48
48
|
|
package/bin/init.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { writeFileSync } from
|
|
2
|
+
import { writeFileSync } from "node:fs";
|
|
3
3
|
|
|
4
|
-
console.info(
|
|
4
|
+
console.info("Add commitlint config in commitlint.config.mjs");
|
|
5
5
|
|
|
6
6
|
writeFileSync(
|
|
7
|
-
|
|
7
|
+
"commitlint.config.mjs",
|
|
8
8
|
`export default {
|
|
9
9
|
extends: ['@pplancq/commitlint-config'],
|
|
10
10
|
};
|
|
11
11
|
`,
|
|
12
12
|
{
|
|
13
|
-
encoding:
|
|
13
|
+
encoding: "utf-8",
|
|
14
14
|
},
|
|
15
15
|
);
|
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @type {import('@commitlint/types').UserConfig} */
|
|
2
2
|
const config = {
|
|
3
|
-
extends: [
|
|
4
|
-
ignores: [commit => /release/i.test(commit)],
|
|
3
|
+
extends: ["@commitlint/config-conventional"],
|
|
4
|
+
ignores: [(commit) => /release/i.test(commit)],
|
|
5
5
|
rules: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"header-max-length": [2, "always", 200],
|
|
7
|
+
"body-max-line-length": [0],
|
|
8
|
+
"footer-max-line-length": [0],
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/commitlint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "pplancq commitlint config",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"config"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@commitlint/config-conventional": "^21.0
|
|
37
|
+
"@commitlint/config-conventional": "^21.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@commitlint/cli": "^21.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"eslint": "^9.39.
|
|
44
|
-
"eslint-plugin-prettier": "^5.5.
|
|
45
|
-
"lint-staged": "^17.0
|
|
46
|
-
"prettier": "^3.
|
|
43
|
+
"eslint": "^9.39.5",
|
|
44
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
45
|
+
"lint-staged": "^17.2.0",
|
|
46
|
+
"prettier": "^3.9.6"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.12.0"
|