Skip to content

Commit a082040

Browse files
liangmiQwQcamc314
andauthored
feat(editor): adjust oxlint oxfmt config file editor supporting (#16616)
Added default editor schema for `.oxfmtrc.json(c)` files Added nested oxlint config support (`**/.oxlintrc.json`) And since `oxlintrc.json`, `oxlint.json` are not the config files which can be selected by default, this PR removed them from default schema, user should add `$schema` field manualy if they want to use their own configs --------- Co-authored-by: Cameron <[email protected]>
1 parent 3895d66 commit a082040

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

editors/vscode/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,24 +227,25 @@
227227
}
228228
},
229229
"jsonValidation": [
230+
{
231+
"fileMatch": ".oxlintrc.json",
232+
"url": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json"
233+
},
230234
{
231235
"fileMatch": [
232-
"oxlintrc.json",
233-
"oxlint.json",
234-
".oxlintrc.json",
235-
".oxlint.json"
236+
".oxfmtrc.json",
237+
".oxfmtrc.jsonc"
236238
],
237-
"url": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json"
239+
"url": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxfmt/configuration_schema.json"
238240
}
239241
],
240242
"languages": [
241243
{
242244
"id": "jsonc",
243245
"filenames": [
244-
"oxlintrc.json",
245-
"oxlint.json",
246246
".oxlintrc.json",
247-
".oxlint.json"
247+
".oxfmtrc.json",
248+
".oxfmtrc.jsonc"
248249
]
249250
}
250251
]

0 commit comments

Comments
 (0)