Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit85330ef

Browse files
authored
chore: better oxlint + vscode integration (#720)
* chore: add oxlint to file nesting patternsWhile 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 parent37c597e commit85330ef

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

‎index.ts

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["oxc.oxc-vscode"]
3+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp