Skip to content

Commit 18c3066

Browse files
committed
fix: updated code
1 parent 4975568 commit 18c3066

File tree

2 files changed

+45
-15
lines changed

2 files changed

+45
-15
lines changed

commitlint.config.js

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
3-
};
2+
extends: ["@commitlint/config-conventional"],
3+
rules: {
4+
"body-leading-blank": [1, "always"],
5+
"body-max-line-length": [2, "always", 100],
6+
"footer-leading-blank": [1, "always"],
7+
"footer-max-line-length": [2, "always", 100],
8+
"header-max-length": [2, "always", 100],
9+
"subject-case": [
10+
2,
11+
"never",
12+
["sentence-case", "start-case", "pascal-case", "upper-case"],
13+
],
14+
"subject-empty": [2, "never"],
15+
"subject-full-stop": [2, "never", "."],
16+
"type-case": [2, "always", "lower-case"],
17+
"type-empty": [2, "never"],
18+
"type-enum": [
19+
2,
20+
"always",
21+
[
22+
"build",
23+
"chore",
24+
"ci",
25+
"docs",
26+
"feat",
27+
"fix",
28+
"perf",
29+
"refactor",
30+
"revert",
31+
"style",
32+
"test",
33+
],
34+
],
35+
},
36+
};

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"name": "identity-api",
33
"version": "1.0.0",
4-
"description": "[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![branch parameter](https://github.com/PSMRI/Identity-API/actions/workflows/sast-and-package.yml/badge.svg)",
4+
"description": "Identity API for user authentication and authorization.",
55
"main": "index.js",
6-
76
"config": {
8-
"commitizen": {
9-
"path": "cz-conventional-changelog"
10-
}
11-
},
12-
"scripts": {
13-
"test": "echo \"No tests specified\"",
14-
"prepare": "husky install",
15-
"commit": "cz"
16-
},
7+
"commitizen": {
8+
"path": "cz-conventional-changelog"
9+
}
10+
},
11+
"scripts": {
12+
"test": "echo \"No tests specified\"",
13+
"prepare": "husky install",
14+
"commit": "cz"
15+
},
1716
"repository": {
1817
"type": "git",
1918
"url": "git+https://github.com/PSMRI/Identity-API.git"
@@ -33,5 +32,3 @@
3332
"husky": "^9.1.7"
3433
}
3534
}
36-
37-

0 commit comments

Comments
 (0)