Skip to content

Commit 85330ef

Browse files
authored
chore: better oxlint + vscode integration (#720)
* 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. * feat: recommend oxc vscode extension when oxlint is chosen
1 parent 37c597e commit 85330ef

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ async function init() {
488488
render('config/eslint')
489489
}
490490

491+
if (needsOxlint) {
492+
render('config/oxlint')
493+
}
494+
491495
if (needsPrettier) {
492496
render('config/prettier')
493497
}

template/base/.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"explorer.fileNesting.patterns": {
44
"tsconfig.json": "tsconfig.*.json, env.d.ts",
55
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6-
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
6+
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .prettier*, prettier*, .editorconfig"
77
}
88
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["oxc.oxc-vscode"]
3+
}

0 commit comments

Comments
 (0)