-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
package.json
226 lines (226 loc) · 5.72 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"name": "linter-xo",
"displayName": "xo",
"version": "3.20.0",
"description": "Linter for XO",
"categories": [
"Linters",
"Formatters"
],
"keywords": [
"code style",
"eslint",
"formatter",
"linter",
"xo",
"vscode",
"lsp"
],
"homepage": "https://github.com/xojs/xo",
"bugs": {
"url": "https://github.com/xojs/vscode-linter-xo/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/xojs/vscode-linter-xo"
},
"license": "MIT",
"author": {
"name": "Spencer Snyder",
"email": "[email protected]",
"url": "https://spencersnyder.io"
},
"publisher": "samverschueren",
"type": "commonjs",
"main": "./dist/client.js",
"scripts": {
"build": "npm run clean && npm run build:client -- --minify && npm run build:server -- --minify",
"build:client": "esbuild ./client/extension.ts --bundle --outfile=dist/client.js --external:vscode --format=cjs --platform=node",
"build:dev": "npm run clean && npm run build:client -- --sourcemap && npm run build:server -- --sourcemap",
"build:server": "esbuild ./server/index.ts --bundle --outfile=dist/server.js --external:vscode --format=cjs --platform=node",
"check": "tsc --project ./tsconfig.json",
"clean": "rimraf dist & rimraf server/dist & rimraf client/dist",
"lint": "xo && npm run lint:md",
"lint:md": "prettier --parser markdown '**/*.md' --check",
"package": "rimraf *.vsix && vsce package",
"prepare": "husky",
"test": "node --require tsx/cjs --test test/index.ts",
"test:coverage": "c8 node --require tsx/cjs --test test/index.ts",
"test:watch": "node --require tsx/cjs --watch --test test/index.ts",
"vscode:prepublish": "npm run check && npm run build"
},
"contributes": {
"commands": [
{
"title": "Fix all auto-fixable problems",
"category": "xo",
"command": "xo.fix"
},
{
"title": "Show Output Channel",
"category": "xo",
"command": "xo.showOutputChannel"
},
{
"title": "Restart XO linter",
"category": "xo",
"command": "xo.restart"
}
],
"configuration": {
"type": "object",
"title": "xo",
"properties": {
"xo.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Control whether xo is enabled or not."
},
"xo.options": {
"scope": "resource",
"type": "object",
"default": {},
"description": "The xo options object to provide args to the xo command."
},
"xo.format.enable": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Enable 'xo --fix' as formatter"
},
"xo.overrideSeverity": {
"scope": "resource",
"type": "string",
"default": "off",
"enum": [
"off",
"info",
"warn",
"error"
],
"description": "Override the severity of found issues."
},
"xo.debounce": {
"scope": "window",
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 350,
"description": "A number between 0 and 350 to debounce lint requests for xo. A higher number can improve performance on large files but may make performance worse on small files."
},
"xo.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the xo server."
},
"xo.path": {
"scope": "resource",
"type": [
"string",
null
],
"default": null,
"pattern": "^(.{0,2}/).*(.js)$",
"description": "An absolute or relative path to resolve xo from. Relative paths resolve with respect to the workspace folder."
},
"xo.runtime": {
"scope": "window",
"type": [
"string",
null
],
"default": null,
"description": "Absolute path to a node binary to run the xo server, defaults to VSCode's internally bundled node version."
},
"xo.validate": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"description": "An array of languages with which to activate the plugin. Defaults: [ \"javascript\", \"javascriptreact\", \"typescript\", \"typescriptreact\" ]"
},
"xo.statusBar": {
"scope": "resource",
"type": "string",
"enum": [
"Relevant",
"Always",
"Never"
],
"default": "Relevant",
"description": "When to show status bar item"
}
}
},
"icons": {
"xo-logo": {
"description": "xo logo",
"default": {
"fontPath": "./scripts/xo.woff",
"fontCharacter": "\\EA01"
}
}
}
},
"activationEvents": [
"onStartupFinished"
],
"prettier": {
"plugins": [
"prettier-plugin-packagejson"
],
"printWidth": 100,
"trailingComma": "none"
},
"dependencies": {
"auto-bind": "^4.0.0",
"endent": "^2.1.0",
"eslint-rule-docs": "^1.1.235",
"find-up": "^7.0.0",
"load-json-file": "^6.2.0",
"p-debounce": "^4.0.0",
"queue": "^6.0.2",
"vscode-languageclient": "^9.0.1",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.11",
"vscode-uri": "^3.0.8"
},
"devDependencies": {
"@commitlint/cli": "19.2.1",
"@commitlint/config-conventional": "19.1.0",
"@types/node": "^20.11.30",
"@types/vscode": "^1.87.0",
"@types/xo": "^0.39.8",
"c8": "^9.1.0",
"esbuild": "^0.20.2",
"husky": "^9.0.11",
"lint-staged": "15.2.2",
"prettier": "^3.2.5",
"prettier-plugin-packagejson": "^2.4.12",
"rimraf": "^5.0.5",
"tsx": "^4.7.1",
"typescript": "^5.4.3",
"vsce": "^2.15.0",
"webfont": "^11.2.26",
"xo": "^0.58.0"
},
"engines": {
"node": ">=16",
"vscode": "^1.87.0"
},
"icon": "icon.png"
}