oxc/editors/vscode/package.json
Alexander S. b04041d1cf
fix(vscode)!: use .oxlintrc.json as default value for oxc.configPath (#7442)
**BREAKING CHANGE**: VSCode-Client does not watch for `eslint`
configuration files. Default value for `oxc.configPath` is now
`.oxlintrc.json` instead of `.eslintrc`
2024-11-24 12:32:44 +08:00

160 lines
4.4 KiB
JSON

{
"name": "oxc-vscode",
"description": "oxc vscode extension",
"license": "MIT",
"version": "0.13.1",
"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.95.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"
}
],
"configuration": {
"type": "object",
"title": "oxc",
"properties": {
"oxc.lint.run": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onType",
"description": "Run the linter on save (onSave) or on type (onType)"
},
"oxc.enable": {
"type": "boolean",
"default": true,
"description": "enable oxc language server"
},
"oxc.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.configPath": {
"type": "string",
"scope": "window",
"default": ".oxlintrc.json",
"description": "Path to ESlint configuration."
},
"oxc.path.server": {
"type": "string",
"scope": "window",
"description": "Path to Oxc language server binary."
}
}
},
"jsonValidation": [
{
"fileMatch": [
"oxlintrc.json",
"oxlint.json",
".oxlintrc.json",
".oxlint.json"
],
"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"
]
}
]
},
"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",
"lint": "npx oxlint --config=oxlint.json --tsconfig=tsconfig.json",
"test": "esbuild client/config.spec.ts --bundle --outfile=out/config.spec.js --external:vscode --format=cjs --platform=node --target=node16 --minify --sourcemap && vscode-test",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "^22.0.0",
"@types/vscode": "1.95.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.24.0",
"ovsx": "^0.10.0",
"oxlint": "^0.11.1",
"typescript": "^5.4.5"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"vsce": {
"dependencies": false
}
}