mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 04:38:54 +00:00
## [0.9.6] - 2024-09-18 ### Features -3bf7b24linter: Make `typescript/no-duplicate-enum-values` a `correctness` rule (#5810) (DonIsaac) -7799c06linter/react: Implement `no-danger-with-children` rule (#5420) (Cam McHenry) ### Bug Fixes -f942485linter: Remove all* remaining "Disallow <foo>" messages (#5812) (DonIsaac) -b5ad518linter: Improve diagnostic messages for various lint rules (#5808) (DonIsaac) -858f7aflinter: Plugin prefix name for eslint-plugin-node (#5807) (DonIsaac) -737ba1dlinter: Fix some cases on ```AssignmentExpression``` for ```unicorn/consistent-function-scoping``` (#5675) (Arian94) -148c7a8linter: Replace bitwise AND (&) with logical AND (&&) in explici… (#5780) (kaykdm) -b4ed564linter/no-unused-vars: Writes to members triggering false positive (#5744) (Dunqing) -e9c084alinter/no-unused-vars: False positive when a variable used as a computed member property (#5722) (Dunqing) ### Performance -3725d5dlinter: Make all rules share a diagnostics vec (#5806) (DonIsaac) -e978567linter: Shrink size of `DisableDirectives` (#5798) (DonIsaac) -1bfa515linter: Remove redundant clone of diagnostics in context (#5797) (DonIsaac) -e413cadlinter: Move shared context info to `ContextHost` (#5795) (DonIsaac) ### Refactor -6dd6f7cast: Change `Comment` struct (#5783) (Boshen) -7caae5bcodegen: Add `GetSpan` requirement to `Gen` trait (#5772) (Boshen) -026ee6alinter: Decouple module resolution from import plugin (#5829) (dalaoshu) -50834bclinter: Move `override_rule` to `OxlintRules` (#5708) (DonIsaac) -a438743linter: Move `OxlintConfig` to `Oxlintrc` (#5707) (DonIsaac) -f61e8b5linter: Impl serde and schemars traits for `LintPlugins` (#5706) (DonIsaac) -20a7861linter: Shorten `Option` syntax (#5735) (overlookmotel) -d8b612coxc_linter: Prefer pass Enum instead of str `no_plus_plus` (#5730) (IWANABETHATGUY) -cc0408bsemantic: S/AstNodeId/NodeId (#5740) (Boshen) --------- Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
158 lines
4.2 KiB
JSON
158 lines
4.2 KiB
JSON
{
|
|
"name": "oxc-vscode",
|
|
"description": "oxc vscode extension",
|
|
"packageManager": "pnpm@9.10.0",
|
|
"license": "MIT",
|
|
"version": "0.9.6",
|
|
"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": "^3.0.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
|
|
}
|
|
}
|