Skip to content

Commit 6e60cea

Browse files
committed
fix(oxlint): add oxlintrc.jsonc to root markers
1 parent fb5fa30 commit 6e60cea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/configs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8779,7 +8779,7 @@ Default config:
87798779
- `on_attach`: [../lsp/oxlint.lua:32](../lsp/oxlint.lua#L32)
87808780
- `root_markers` :
87818781
```lua
8782-
{ ".oxlintrc.json", "oxlint.config.ts" }
8782+
{ ".oxlintrc.json", ".oxlintrc.jsonc", "oxlint.config.ts" }
87838783
```
87848784
- `settings` :
87858785
```lua

doc/configs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6463,7 +6463,7 @@ Default config:
64636463
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "svelte", "astro" }
64646464
- on_attach (use "gF" to view): ../lsp/oxlint.lua:32
64656465
- root_markers: >lua
6466-
{ ".oxlintrc.json", "oxlint.config.ts" }
6466+
{ ".oxlintrc.json", ".oxlintrc.jsonc", "oxlint.config.ts" }
64676467
- settings: >lua
64686468
{}
64696469
- `workspace_required` : `true`

lsp/oxlint.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ return {
4747
'svelte',
4848
'astro',
4949
},
50-
root_markers = { '.oxlintrc.json', 'oxlint.config.ts' },
50+
root_markers = { '.oxlintrc.json', '.oxlintrc.jsonc', 'oxlint.config.ts' },
5151
workspace_required = true,
5252
on_attach = function(client, bufnr)
5353
vim.api.nvim_buf_create_user_command(bufnr, 'LspOxlintFixAll', function()

0 commit comments

Comments
 (0)