@vijayhardaha/dev-config 1.0.7 → 1.0.9
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/package.json +6 -3
- package/src/commitlint/index.js +5 -12
- package/src/prettier/index.js +3 -0
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vijayhardaha/dev-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Reusable development configurations for Next.js + TypeScript projects",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Vijay Hardaha",
|
|
7
|
+
"url": "https://github.com/vijayhardaha"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"type": "module",
|
|
8
11
|
"main": "./src/index.js",
|
|
@@ -156,7 +159,7 @@
|
|
|
156
159
|
"@eslint/compat": "^2.0.3",
|
|
157
160
|
"@eslint/eslintrc": "^3.3.5",
|
|
158
161
|
"@eslint/js": "^9.39.4",
|
|
159
|
-
"@typescript-eslint/parser": "^8.
|
|
162
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
160
163
|
"eslint": "^9.39.4",
|
|
161
164
|
"eslint-config-prettier": "^10.1.8",
|
|
162
165
|
"eslint-import-resolver-typescript": "^4.4.4",
|
package/src/commitlint/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* =====================================================================
|
|
5
5
|
* Purpose: Enforce conventional commit message standards for consistent
|
|
6
6
|
* and meaningful Git commit history.
|
|
7
|
-
* Docs:
|
|
7
|
+
* Docs: https://commitlint.js.org/#/
|
|
8
8
|
* =====================================================================
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -15,18 +15,11 @@ const config = {
|
|
|
15
15
|
extends: ['@commitlint/config-conventional'],
|
|
16
16
|
|
|
17
17
|
// ---- Rules ----
|
|
18
|
-
// Maximum length for the commit header (first line)
|
|
19
18
|
rules: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
// Commit body must be in sentence case or lower case
|
|
26
|
-
'body-case': [2, 'always', ['sentence-case', 'lower-case']],
|
|
27
|
-
|
|
28
|
-
// Subject case is not enforced (allows flexibility)
|
|
29
|
-
'subject-case': [0],
|
|
19
|
+
// Enforce a maximum header length of 72 characters
|
|
20
|
+
'header-max-length': [2, 'always', 72],
|
|
21
|
+
// Enforce lowercase for the scope of the commit message
|
|
22
|
+
'scope-case': [2, 'always', 'lower-case'],
|
|
30
23
|
},
|
|
31
24
|
};
|
|
32
25
|
|
package/src/prettier/index.js
CHANGED
|
@@ -60,6 +60,9 @@ const config = {
|
|
|
60
60
|
files: ['*.json', '*.jsonc', '*.yml', '*.yaml', '*.md', '*.mdx'],
|
|
61
61
|
options: { tabWidth: 2, trailingComma: 'none' },
|
|
62
62
|
},
|
|
63
|
+
// ---- YAML ----
|
|
64
|
+
// Use yaml parser with 2-space indentation
|
|
65
|
+
{ files: ['*.yml', '*.yaml'], options: { parser: 'yaml', tabWidth: 2 } },
|
|
63
66
|
],
|
|
64
67
|
};
|
|
65
68
|
|