-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
104 lines (104 loc) · 3.27 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "commit-message-formatter",
"displayName": "Commit Message Formatter",
"description": "Break long lines in commit messages.",
"version": "0.4.0",
"preview": false,
"publisher": "adam-bender",
"license": "MIT",
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Formatters"
],
"keywords": [
"git",
"vcs",
"commit",
"prettier"
],
"repository": {
"url": "https://github.com/bendera/vscode-commit-message-formatter"
},
"activationEvents": [
"onLanguage:git-commit"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "git-commit",
"extensions": [
"COMMIT_EDITMSG"
],
"filenames": [
"COMMIT_EDITMSG"
]
}
],
"configuration": {
"title": "Commit Message Formatter",
"properties": {
"commit-message-formatter.subjectMode": {
"type": "string",
"enum": [
"truncate",
"truncate-ellipses",
"split",
"split-ellipses"
],
"markdownEnumDescriptions": [
"Truncate the subject at the limit, moving the rest to the message body. Example:\n\n`Lorem Ip`\n\n`sum`",
"Truncate the subject at the limit, moving the rest to the message body. Add a three-dots suffix to the subject, and a three-dots prefix to the body. Example:\n\n`Lorem Ip...`\n\n`...sum`",
"Split the subject at the last space character before the limit, moving the rest to the message body. Example:\n\n`Lorem`\n\n`Ipsum`",
"Split the subject at the last space character before the limit, moving the rest to the message body. Add a three-dots suffix to the subject, and a three-dots prefix to the body. Example:\n\n`Lorem...`\n\n`...Ipsum`"
],
"default": "truncate",
"markdownDescription": "How to handle the subject line if it is longer than the allowed length. Subject length can be set in `#git.inputValidationSubjectLength#`."
},
"commit-message-formatter.collapseMultipleEmptyLines": {
"type": "boolean",
"default": false,
"description": "Collapse multiple blank lines to single one."
},
"commit-message-formatter.protectedPatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"#",
"Signed-off-by:",
"Co-authored-by:"
],
"description": "Keep the line untouched, which begins with one of these patterns."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.36.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@bendera/commit-message-formatter": "^0.7.0"
}
}