-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
179 lines (179 loc) · 4.49 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"publisher": "kkopite",
"name": "zhlint",
"version": "1.0.7",
"description": "zhlint vscode extension",
"author": "kkopite",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zhlint-project/zhlint-vscode"
},
"keywords": [
"zhlint"
],
"categories": [
"Linters",
"Formatters"
],
"main": "./client/out/extension",
"icon": "res/icon.png",
"engines": {
"vscode": "^1.75.0"
},
"activationEvents": [
"onLanguage:markdown"
],
"contributes": {
"configuration": {
"type": "object",
"title": "zhlint",
"properties": {
"zhlint.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"zhlint.enable": {
"type": "boolean",
"default": true,
"title": "Enable zhlint",
"description": "Controls whether zhlint is enabled or not."
},
"zhlint.experimental.diff": {
"type": "boolean",
"title": "show rule diff in explorer",
"description": "This is an experimental feature, it maybe remove",
"default": false
},
"zhlint.debug": {
"type": "boolean",
"default": false
},
"zhlint.options": {
"type": "object",
"properties": {
"rules": {
"$ref": "./zhlint-rules-schema.json",
"description": "customize the linting config"
},
"ignoredCases": {
"type": "array",
"description": "provide exception cases which you would like to skip.",
"items": {
"type": "object",
"required": [
"textStart"
],
"properties": {
"prefix": {
"type": "string"
},
"suffix": {
"type": "string"
},
"textStart": {
"type": "string"
},
"textEnd": {
"type": "string"
}
}
}
},
"hyperParse": {
"type": "array",
"description": "customize the hyper parser by their names. It could be `undefined` which means just use default ignored cases parser, Markdown parser and the Hexo tags parser.",
"items": {
"type": "string",
"enum": [
"ignore",
"hexo",
"vuepress",
"markdown"
]
}
}
}
}
}
},
"languages": [
{
"id": "jsonc",
"filenames": [
".zhlintrc"
]
},
{
"id": "ignore",
"filenames": [
".zhlintignore"
]
}
],
"jsonValidation": [
{
"fileMatch": ".zhlintrc",
"url": "./zhlint-json-schema.json"
},
{
"fileMatch": ".zhlintrc.json",
"url": "./zhlint-json-schema.json"
}
],
"views": {
"explorer": [
{
"id": "zhlint",
"name": "zhlint rules",
"icon": "res/icon.png",
"when": "config.zhlint.experimental.diff"
}
]
},
"menus": {
"commandPalette": [
{
"command": "zhlint.openRuleDiff",
"when": "false"
}
]
},
"commands": [
{
"command": "zhlint.openRuleDiff",
"category": "zhlint",
"title": "Open Diff Rule"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh",
"release": "bumpp && npm run publish",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.4",
"@types/mocha": "^9.1.1",
"@types/node": "^16.18.82",
"@vscode/vsce": "^2.22.0",
"bumpp": "^9.2.0",
"eslint": "^8.56.0",
"mocha": "^9.2.2",
"typescript": "^5.3.3"
}
}