mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
## [0.15.4] - 2024-12-30 ### Features -47cea9alinter: Implement `eslint/no-extra-label` (#8181) (Anson Heung) -ef76e28linter: Implement `eslint/no-multi-assign` (#8158) (Anson Heung) -384858blinter: Implement `jsx-a11y/no-noninteractive-tabindex` (#8167) (Tyler Earls) -afc21a6linter: Implement `eslint/vars-on-top` (#8157) (Yuichiro Yamashita) -65796c4linter: Implement `eslint/prefer-rest-params` (#8155) (Yuichiro Yamashita) -5234d96linter: Implement `eslint/no-nested-ternary` (#8150) (Yuichiro Yamashita) -1c5db72linter: Implement eslint/no-labels (#8131) (Anson Heung) -0b04288linter: Move `import/named` to nursery (#8068) (Boshen) ### Bug Fixes -0794beeeditor/vscode: Set minimum supported ver. to `^1.93.0` (#8182) (Pavel Smirnov) -f3050d4linter: Exclude svelte files from `no_unused_vars` rule (#8170) (Yuichiro Yamashita) -faf7464linter: Disable rule `react/rules-of-hook` by file extension (#8168) (Alexander S.) -1171e00linter: Disable `react/rules-of-hooks` for vue and svelte files (#8165) (Alexander S.) -1b9a5balinter: False positiver in private member expr in oxc/const-comparison (#8164) (camc314) -6bd9ddblinter: False positive in `typescript/ban-tslint-comment` (#8094) (dalaoshu) -10a1fd5linter: Rule: `no-restricted-imports` support option `patterns` with `group` key (#8050) (Alexander S.) -b3f38aelinter: Rule `no-restricted-imports`: support option `allowImportNames` (#8002) (Alexander S.) -340cc90linter: Rule `no-restricted-imports`: fix option "importNames" (#7943) (Alexander S.) -ec2128elinter: Fix line calculation for `eslint/max-lines` in diagnostics (#7962) (Dmitry Zakharov) -79af100semantic: Reference flags not correctly resolved when after an export stmt (#8134) (camc314) ### Performance -d8d2ec6linter: Run rules which require typescript syntax only when source type is actually typescript (#8166) (Alexander S.) -2736657semantic: Allocate `UnresolvedReferences` in allocator (#8046) (Boshen) ### Refactor -de8246blanguage_server: Move structs into own file (#8026) (Alexander S.) -774babblinter: Read `exported_bindings_from_star_export` lazily (#8062) (Boshen) -547c102linter: Use `RwLock<FxHashMap>` instead of `FxDashMap` for module record data (#8061) (Boshen) -952d7e4linter: Rename `flat.rs` to `config.rs` (#8033) (camc314) -50848edlinter: Simplify `ConfigStore` to prep for nested configs (#8032) (camc314) -b2a4a78linter: Remove unused `with_rules` and `set_rule` methods (#8029) (camc314) -6da0b21oxlint: Remove unused `git.rs` (#7990) (Boshen) -58e7777oxlint: Remove extra if check in `Walkdir` (#7989) (Boshen) -02f968dsemantic: Change `Bindings` to a plain `FxHashMap` (#8019) (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
165 lines
4.6 KiB
JSON
165 lines
4.6 KiB
JSON
{
|
|
"name": "oxc-vscode",
|
|
"description": "oxc vscode extension",
|
|
"license": "MIT",
|
|
"version": "0.15.4",
|
|
"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.93.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.applyAllFixesFile",
|
|
"title": "Fix all auto-fixable problems (file)",
|
|
"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.93.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.15.0",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^9.0.1"
|
|
},
|
|
"vsce": {
|
|
"dependencies": false
|
|
}
|
|
}
|