diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-09 19:55:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 19:55:04 -0400 |
commit | 3dd981e199a66b09af072d550514ed2fe300df63 (patch) | |
tree | ac88540579f78972fac70246e542ce7de96d54a4 /cli/tools/fmt.rs | |
parent | cf866c5ad386be721ddf432ea2d13c61347f87e5 (diff) |
feat(fmt): support formatting cjs, cts, mjs, and mts files (#14837)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 475767331..3eb620900 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -194,6 +194,10 @@ fn format_markdown( | "tsx" | "js" | "jsx" + | "cjs" + | "cts" + | "mjs" + | "mts" | "javascript" | "typescript" | "json" @@ -707,7 +711,10 @@ fn is_supported_ext_fmt(path: &Path) -> bool { | "tsx" | "js" | "jsx" + | "cjs" + | "cts" | "mjs" + | "mts" | "json" | "jsonc" | "md" |