-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
238 lines (238 loc) · 6.29 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
227
228
229
230
231
232
233
234
235
236
237
238
{
"name": "vscode-standard",
"displayName": "StandardJS - JavaScript Standard Style",
"description": "Visual Studio Code extension for JavaScript Standard Style with automatic fixing.",
"version": "2.1.3",
"author": "Standard",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/standard/vscode-standard.git"
},
"bugs": {
"url": "https://github.com/standard/vscode-standard/issues"
},
"publisher": "standard",
"icon": "standard_icon.png",
"categories": [
"Linters",
"Formatters"
],
"keywords": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue"
],
"engines": {
"vscode": "^1.50.0",
"npm": ">=7.0.0"
},
"activationEvents": [
"*"
],
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "JavaScript Standard Style",
"properties": {
"standard.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls whether JavaScript Standard Style is enabled for JavaScript files or not."
},
"standard.enableGlobally": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Controls whether JavaScript Standard Style is enabled globally for JavaScript files or not."
},
"standard.nodePath": {
"scope": "resource",
"type": [
"string",
"null"
],
"default": null,
"description": "A path added to NODE_PATH when resolving the standard module."
},
"standard._legacyModuleResolve": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Uses the legacy module resolving."
},
"standard.options": {
"scope": "resource",
"type": "object",
"default": {},
"description": "The standard options object to provide args normally passed to JavaScript Standard Style when executed from a command line."
},
"standard.engine": {
"scope": "resource",
"type": "string",
"enum": [
"standard",
"semistandard",
"standardx",
"ts-standard"
],
"default": "standard",
"description": "Controls whether VSCode should use an alternate Standard engine, like semistandard, standardx or ts-standard."
},
"standard.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the JavaScript Standard Style linter service."
},
"standard.run": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onType",
"description": "Run the linter on save (onSave) or on type (onType)"
},
"standard.autoFixOnSave": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Turns auto fix on save on or off."
},
"standard.workingDirectories": {
"scope": "resource",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"directory": {
"type": "string",
"description": "The working directory to use if a file's path start with this directory."
},
"changeProcessCWD": {
"type": "boolean",
"description": "Whether the process's cwd should be changed as well."
}
}
}
]
}
},
"standard.validate": {
"scope": "resource",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"language": {
"type": "string",
"description": "The language id to be validated by JavaScript Standard Style"
},
"autoFix": {
"type": "boolean",
"description": "Whether auto fixes are provided for the language"
}
}
}
]
},
"default": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"description": "An array of language ids which should be validated by JavaScript Standard Style"
},
"standard.usePackageJson": {
"type": "boolean",
"default": true,
"description": "Activate JavaScript Standard Style based on project's package.json settings, use globally installed standard module if set to \"false\""
},
"standard.treatErrorsAsWarnings": {
"type": "boolean",
"default": false,
"description": "Any linting error reported by Standard will instead be displayed as a warning within VS Code."
}
}
},
"commands": [
{
"title": "Fix all auto-fixable Problems",
"category": "JavaScript Standard Style",
"command": "standard.executeAutofix"
},
{
"title": "Enable JavaScript Standard Style for this Workspace",
"category": "JavaScript Standard Style",
"command": "standard.enable"
},
{
"title": "Disable JavaScript Standard Style for this Workspace",
"category": "JavaScript Standard Style",
"command": "standard.disable"
},
{
"title": "Show Output Channel",
"category": "JavaScript Standard Style",
"command": "standard.showOutputChannel"
}
],
"jsonValidation": [
{
"fileMatch": "package.json",
"url": "http://json.schemastore.org/package"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"test": "npm run compile && sh ./scripts/e2e.sh",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"package": "vsce package",
"lint": "cd client && npm run lint && cd ../server && npm run lint && cd ..",
"format": "cd client && npm run format && cd ../server && npm run format && cd .."
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"@types/node": "^18.11.9",
"@vscode/test-electron": "^2.2.2",
"mocha": "^10.1.0",
"snazzy": "^9.0.0",
"ts-standard": "^12.0.1",
"typescript": "^4.8.4",
"vsce": "^2.13.0"
},
"dependencies": {
"async": "^3.2.4"
},
"__metadata": {
"id": "df1fc29e-5da3-44aa-b823-201a2d07154f",
"publisherDisplayName": "Standard",
"publisherId": "bba8e1d9-5ef7-404d-a918-f050cbfd2d01",
"isPreReleaseVersion": false
}
}