Skip to content

Commit 1c719fc

Browse files
add jsx and tsx
1 parent 3ae22ef commit 1c719fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/custom/plugins/init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ lint.linters_by_ft = {
5151

5252
local conform = require 'conform'
5353
conform.formatters_by_ft = {
54-
javascript = { 'prettierd ' },
55-
typescript = { 'prettierd ' },
54+
javascript = { 'prettierd', 'prettier' },
55+
javascriptreact = { 'prettierd', 'prettier' },
56+
typescript = { 'prettierd', 'prettier' },
57+
typescriptreact = { 'prettierd', 'prettier' },
5658
ruby = { 'rubocop' },
5759
markdown = { 'markdownlint' },
5860
eruby = { 'erb_lint' },

0 commit comments

Comments
 (0)