From 64b3c1739ecba18d871635ef7901fe4ed5e4edc8 Mon Sep 17 00:00:00 2001 From: Rafael Derolez Date: Tue, 31 Oct 2023 08:39:18 +0100 Subject: [PATCH] feat(typescript): Add .mjs files to Prettier detection helper func (#618) --- lua/astrocommunity/pack/typescript/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/astrocommunity/pack/typescript/init.lua b/lua/astrocommunity/pack/typescript/init.lua index 945f680ce..bad1d6dd3 100644 --- a/lua/astrocommunity/pack/typescript/init.lua +++ b/lua/astrocommunity/pack/typescript/init.lua @@ -67,6 +67,8 @@ return { or util.root_has_file ".prettierrc.js" or util.root_has_file ".prettierrc.cjs" or util.root_has_file "prettier.config.js" + or util.root_has_file ".prettierrc.mjs" + or util.root_has_file "prettier.config.mjs" or util.root_has_file "prettier.config.cjs" or util.root_has_file ".prettierrc.toml" end