mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 13:18:59 +00:00
## [0.10.0] - 2024-10-18 -7f6b219editor/vscode: [**BREAKING**] Unify configuration logic (#6630) (DonIsaac) -782f0a7codegen: [**BREAKING**] Rename `print_char` method to `print_ascii_byte` (#6512) (overlookmotel) -7645e5ccodegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen) -5200960oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen) -80266d8linter: [**BREAKING**] Support plugins in oxlint config files (#6088) (DonIsaac) ### Features -6f22538ecmascript: Add `ToBoolean`, `ToNumber`, `ToString` (#6502) (Boshen) -1e7fab3linter: Implement `no-callback-in-promise` (#6157) (dalaoshu) -c56343dlinter: Promote `no_unsafe_optional_chaining` to correctness (#6491) (Boshen) -454874alinter: Implement `react/iframe-missing-sandbox` (#6383) (Radu Baston) -c8174e2linter: Add suggestions for `no-plusplus` (#6376) (camchenry) -6e3224dlinter: Configure by category in config files (#6120) (DonIsaac) -c5e66e1linter/no-unused-vars: Report own type references within class, interface, and type alias declarations (#6557) (DonIsaac) -8c78f97linter/node: Implement no-new-require (#6165) (Jelle van der Waa) ### Bug Fixes -cf92730editor: Use human-readable output channel names (#6629) (DonIsaac) -d9159a2editor: Misaligned command prefixes (#6628) (DonIsaac) -b9c94bbeditors/vscode: Temporarily solve oxc_language_server issue on windows (#6384) (dalaoshu) -e340424linter: Support import type with namespaced import in `import/no-duplicates` (#6650) (Dmitry Zakharov) -a668397linter: Panic in `no-else-return` (#6648) (dalaoshu) -41dc8e3linter: Stack overflow in `oxc/no-async-endpoint-handlers` (#6614) (DonIsaac) -d07a9b0linter: Panic in `no-zero-fractions` (#6607) (dalaoshu) -d6a0d2elinter: Fix file name checking behavior of `unicorn/filename-case` (#6463) (camchenry) -0784e74linter: Error fixer of `switch-case-braces` (#6474) (dalaoshu) -e811812linter: Error diagnostic message based on parameter length of valid-expect (#6455) (dalaoshu) -f71c91elinter: Move `eslint/sort-keys` to `style` category (#6377) (DonIsaac) -2b86de9linter/no-control-regex: False negative for flags in template literals (#6531) (DonIsaac) -685a590linter/no-control-regex: Better diagnostic messages (#6530) (DonIsaac) -6d5a9f2linter/no-control-regex: Allow capture group references (#6529) (DonIsaac) -ba53bc9linter/no-unused-vars: False positives in TS type assertions (#6397) (DonIsaac) -d3e59c6linter/no-unused-vars: False positive in some default export cases (#6395) (DonIsaac) -e08f956linter/no-unused-vars: False positive for functions and classes in arrays (#6394) (DonIsaac) -b9d7c5fno-unused-vars: Consider functions within conditional expressions usable (#6553) (Brian Donovan) ### Performance -0cbd4d0linter: Avoid megamorphism in `RuleFixer` methods (#6606) (DonIsaac) -725f9f6linter: Get fewer parent nodes in `unicorn/prefer-dom-node-text-content` (#6467) (camchenry) -c00f669linter: Use NonZeroUsize for pending module cache entries (#6439) (DonIsaac) -a1a2721linter: Replace `ToString::to_string` with `CompactStr` in remaining rules (#6407) (camchenry) -c5c69d6linter: Use `CompactStr` in `valid-title` (#6406) (camchenry) -d66e826linter: Use `CompactStr` in `prefer-lowercase-title` (#6405) (camchenry) -889400clinter: Use `CompactStr` for `get_node_name` in Jest rules (#6403) (camchenry) -9906849linter: Use `CompactStr` in `no-large-snapshots` (#6402) (camchenry) -c382ec4linter: Use `CompactStr` in `no-hooks` (#6401) (camchenry) -24a5d9blinter: Use `CompactStr` in `expect-expect` (#6400) (camchenry) -71dbdadlinter: Use `CompactStr` in `no-console` (#6399) (camchenry) -f5f00a1linter: Use `CompactStr` in `no-bitwise` (#6398) (camchenry) -62afaa9linter/jsx-no-comment-textnodes: Remove regex for checking comment patterns (#6534) (camchenry) -b3d0ccelinter/no-unescaped-entities: Add fast path to check if char should be replaced (#6594) (camchenry) -ee73f56linter/no-unused-vars: Do not construct `Regex` for default ignore pattern (#6590) (camchenry) -77ddab8linter/numeric-separators-style: Replace regex with number parser (#6546) (camchenry) -8f47cd0linter/react: Remove regex patterns in `no-unknown-property` (#6536) (camchenry) ### Documentation -557f941linter: Add docs to no-unused-vars and Tester (#6558) (DonIsaac) ### Refactor -ecce5c5linter: Improve recursive argument handling and diagnostics creation (#6513) (no-yan) -f960e9elinter: Add suggested file names for `unicorn/filename-case` (#6465) (camchenry) -7240ee2linter: Make advertised fix kinds consistent (#6461) (Alexander S.) -b48c368linter: `no_global_assign` rule: reduce name lookups (#6460) (overlookmotel) -2566ce7linter: Remove OxlintOptions (#6098) (DonIsaac) -002078alinter: Make Runtime's members private (#6440) (DonIsaac) -6a0a533linter: Move module cache logic out of Runtime (#6438) (DonIsaac) -c18c6e9linter: Split service code into separate modules (#6437) (DonIsaac) -5ea9ef7linter: Improve labels and help message for `eslint/no-useless-constructor` (#6389) (DonIsaac) -2c32daclinter/no-control-regex: Remove duplicate code (#6527) (DonIsaac) -435a89coxc: Remove useless `allocator.alloc(program)` calls (#6571) (Boshen) -f70e93boxc: Ban index methods on std::str::Chars (#6075) (dalaoshu) ### Testing -a6cae98linter: Make sure all auto-fixing rules have fixer test (#6378) (DonIsaac) -06b09b2linter/no-unused-vars: Enable now-passing tests (#6556) (DonIsaac) -badd11clinter/no-unused-vars: Ignored catch parameters (#6555) (DonIsaac) -84aa2a2linter/no-useless-constructor: Add cases for initializers in subclass constructors (#6390) (DonIsaac) --------- Co-authored-by: DonIsaac <22823424+DonIsaac@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
161 lines
4.2 KiB
JSON
161 lines
4.2 KiB
JSON
{
|
|
"name": "oxc-vscode",
|
|
"description": "oxc vscode extension",
|
|
"packageManager": "pnpm@9.12.1",
|
|
"license": "MIT",
|
|
"version": "0.10.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.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": ".eslintrc",
|
|
"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",
|
|
".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"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/vscode": "1.80.0",
|
|
"@vscode/vsce": "^3.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"esbuild": "^0.24.0",
|
|
"ovsx": "^0.10.0",
|
|
"typescript": "^5.4.5"
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^9.0.1"
|
|
},
|
|
"vsce": {
|
|
"dependencies": false
|
|
}
|
|
}
|