@textmode/commitlint-config 0.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.
- package/index.js +27 -0
- package/package.json +17 -0
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
extends: ['@commitlint/config-conventional'],
|
|
3
|
+
rules: {
|
|
4
|
+
// Enforce conventional commit types
|
|
5
|
+
'type-enum': [
|
|
6
|
+
2,
|
|
7
|
+
'always',
|
|
8
|
+
[
|
|
9
|
+
'feat', // New feature
|
|
10
|
+
'fix', // Bug fix
|
|
11
|
+
'docs', // Documentation only
|
|
12
|
+
'style', // Formatting (no code change)
|
|
13
|
+
'refactor', // Code change that neither fixes a bug nor adds a feature
|
|
14
|
+
'perf', // Performance improvement
|
|
15
|
+
'test', // Adding or updating tests
|
|
16
|
+
'build', // Build system or external dependencies
|
|
17
|
+
'ci', // CI configuration
|
|
18
|
+
'chore', // Maintenance tasks
|
|
19
|
+
'revert', // Revert a previous commit
|
|
20
|
+
],
|
|
21
|
+
],
|
|
22
|
+
// Allow any case for subject (flexible for creative projects)
|
|
23
|
+
'subject-case': [0],
|
|
24
|
+
// Reasonable max length for header
|
|
25
|
+
'header-max-length': [2, 'always', 100],
|
|
26
|
+
},
|
|
27
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@textmode/commitlint-config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": ["index.js"],
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@commitlint/cli": ">=20"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@commitlint/config-conventional": "^20.5.0"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"check": "node --check index.js",
|
|
15
|
+
"lint": "node --check index.js"
|
|
16
|
+
}
|
|
17
|
+
}
|