mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
## [0.14.0] - 2024-12-01 ### Features -32f860dlinter: Add support for ignorePatterns property within config file (#7092) (Nicholas Rayburn) -053bc08linter: Implement typescript/no-unused-expressions (#7498) (camc314) -60b28fclinter: Implement typescript/consistent-generic-constructors (#7497) (camc314) -bd0693blinter: Allow lint rules with the same name (#7496) (camc314) -2ac9f96linter: Typescript/no-inferrable-types (#7438) (camc314) -8d89fdclinter: Add eslint/prefer-spread (#7112) (tbashiyy) ### Bug Fixes -123b5b7linter: False positive in `typescript/consistent-type-definitions` (#7560) (dalaoshu) -cc078d6linter: Add missing error message prefix to `eslint/no-const-assign` (Boshen) -17c0dd8linter: Fix `jsx_no_script_url` doc failed to build (Boshen) ### Performance -6cc7a48linter: Use `OsString` for module cache hash (#7558) (Boshen) -6655345linter: Use `FxDashMap` for module cache (#7522) (overlookmotel) ### Documentation -a6b0100linter: Fix config example headings (#7562) (Boshen) ### Refactor -0f3f67alinter: Add capability of adding semantic data to module record (#7561) (Boshen) -8392177linter: Clean up the runtime after the module record change (#7557) (Boshen) -823353alinter: Clean up APIs for `ModuleRecord` (#7556) (Boshen) -f847d0flinter: Call `str::ends_with` with array not slice (#7526) (overlookmotel) -2077ff9linter: Remove `once_cell` (#7510) (Boshen) -169b8bflinter, syntax: Introduce type alias `FxDashMap` (#7520) (overlookmotel) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
160 lines
4.4 KiB
JSON
160 lines
4.4 KiB
JSON
{
|
|
"name": "oxc-vscode",
|
|
"description": "oxc vscode extension",
|
|
"license": "MIT",
|
|
"version": "0.14.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.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
|
|
}
|
|
}
|