-
-
Notifications
You must be signed in to change notification settings - Fork 862
Expand file tree
/
Copy pathpackage.json
More file actions
157 lines (157 loc) · 4.19 KB
/
package.json
File metadata and controls
157 lines (157 loc) · 4.19 KB
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
{
"name": "oxc-vscode",
"description": "oxc vscode extension",
"license": "MIT",
"version": "0.7.0",
"icon": "icon.png",
"publisher": "oxc",
"displayName": "Oxc",
"bugs": {
"url": "https://github.com/oxc-project/oxc/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/oxc-project/oxc.git",
"directory": "editors/vscode"
},
"categories": [
"Linters"
],
"keywords": [
"linter",
"oxc"
],
"engines": {
"vscode": "^1.90.0"
},
"sponsor": {
"url": "https://github.com/sponsors/boshen"
},
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:vue",
"onLanguage:svelte"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "oxc.restartServer",
"title": "Restart Oxc Server",
"category": "Oxc"
},
{
"command": "oxc.toggleEnable",
"title": "toggle enable",
"category": "Oxc"
},
{
"command": "oxc.showOutputChannel",
"title": "Show Output Channel",
"category": "Oxc"
},
{
"command": "oxc.showTraceOutputChannel",
"title": "Show Trace Output Channel",
"category": "Oxc"
}
],
"configuration": {
"type": "object",
"title": "oxc",
"properties": {
"oxc_language_server.run": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onType",
"description": "Run the linter on save (onSave) or on type (onType)"
},
"oxc_language_server.enable": {
"type": "boolean",
"default": true,
"description": "enable oxc language server"
},
"oxc_language_server.trace.server": {
"type": "string",
"scope": "window",
"enum": [
"off",
"messages",
"verbose"
],
"enumDescriptions": [
"No traces",
"Error only",
"Full log"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"oxc_language_server.configPath": {
"type": "string",
"scope": "window",
"default": ".eslintrc",
"description": "Path to ESlint configuration."
}
}
},
"jsonValidation": [
{
"fileMatch": [
"oxlintrc.json",
"oxlint.json",
".oxlintrc.json",
".oxlint.json",
".oxlintrc"
],
"url": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json"
}
],
"languages": [
{
"id": "jsonc",
"filenames": [
"oxlintrc.json",
"oxlint.json",
".oxlintrc.json",
".oxlint.json",
".oxlintrc"
]
}
]
},
"scripts": {
"preinstall": "[ -f icon.png ] || curl https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/square.png --output icon.png",
"build": "pnpm run server:build:release && pnpm run compile && pnpm run package",
"compile": "esbuild client/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap",
"watch": "pnpm run compile --watch",
"package": "vsce package --no-dependencies -o oxc_language_server.vsix",
"install-extension": "code --install-extension oxc_language_server.vsix --force",
"server:build:debug": "cargo build -p oxc_language_server",
"server:build:release": "cross-env CARGO_TARGET_DIR=./target cargo build -p oxc_language_server --release",
"fmt:js": "prettier --write ./**/*.{js,ts,json}"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/vscode": "1.80.0",
"@vscode/vsce": "^2.27.0",
"cross-env": "^7.0.3",
"esbuild": "^0.23.0",
"ovsx": "^0.9.1",
"prettier": "^3.3.1",
"typescript": "^5.4.5"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"vsce": {
"dependencies": false
}
}