From 46584f81ea720bdd62440d2b2a52f5394761378e Mon Sep 17 00:00:00 2001 From: = Date: Mon, 24 Apr 2023 15:14:53 -0400 Subject: [PATCH] Add javascriptreact and typescriptreact to prettier files. These were added to vim filetypes about 4 years ago (https://github.com/vim/vim/issues/4830). --- autoload/codefmt/prettier.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/codefmt/prettier.vim b/autoload/codefmt/prettier.vim index add1f63..c4de5f2 100644 --- a/autoload/codefmt/prettier.vim +++ b/autoload/codefmt/prettier.vim @@ -18,7 +18,8 @@ let s:plugin = maktaba#plugin#Get('codefmt') " See https://prettier.io for a list of supported file types. if !exists('s:SUPPORTED_FILETYPES') let s:SUPPORTED_FILETYPES = ['javascript', 'markdown', 'html', 'css', 'yaml', - \ 'jsx', 'less', 'scss', 'mdx', 'vue'] + \ 'jsx', 'less', 'scss', 'mdx', 'vue', 'javascriptreact', + \ 'typescriptreact'] lockvar! s:SUPPORTED_FILETYPES endif