From c78976bcd72709aa81313230ddc8136131ab241e Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 24 Mar 2025 21:49:18 +0800 Subject: [PATCH 1/2] chore: add oxlint to file nesting patterns While only `.oxlintrc.json` is the only official configuration file, I found [4 file name patterns](https://github.com/oxc-project/oxc/blob/2c53a728b0128290260e3ce676e25a2a0d94ff56/editors/vscode/package.json#L118-L123) in its vscode extension. So I added them all to the file nesting patterns. --- template/base/.vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/base/.vscode/settings.json b/template/base/.vscode/settings.json index 985128aa5..5070dee4b 100644 --- a/template/base/.vscode/settings.json +++ b/template/base/.vscode/settings.json @@ -3,6 +3,6 @@ "explorer.fileNesting.patterns": { "tsconfig.json": "tsconfig.*.json, env.d.ts", "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*", - "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig" + "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .prettier*, prettier*, .editorconfig" } } From c39531ae77e8dbbb08e3db3bb71db30da3e0e807 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 24 Mar 2025 21:54:49 +0800 Subject: [PATCH 2/2] feat: recommend oxc vscode extension when oxlint is chosen --- index.ts | 4 ++++ template/config/oxlint/.vscode/extensions.json | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 template/config/oxlint/.vscode/extensions.json diff --git a/index.ts b/index.ts index 67e8d75b5..26fe68d40 100755 --- a/index.ts +++ b/index.ts @@ -488,6 +488,10 @@ async function init() { render('config/eslint') } + if (needsOxlint) { + render('config/oxlint') + } + if (needsPrettier) { render('config/prettier') } diff --git a/template/config/oxlint/.vscode/extensions.json b/template/config/oxlint/.vscode/extensions.json new file mode 100644 index 000000000..99e2f7ddf --- /dev/null +++ b/template/config/oxlint/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["oxc.oxc-vscode"] +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy