fn is_supported_ext_fmt(path: &Path) -> bool {
  if let Some(ext) = get_extension(path) {
    matches!(
      ext.as_str(),
      "ts"
        | "tsx"
        | "js"
        | "jsx"
        | "cjs"
        | "cts"
        | "mjs"
        | "mts"
        | "json"
        | "jsonc"
        | "md"
        | "mkd"
        | "mkdn"
        | "mdwn"
        | "mdown"
        | "markdown"
    )
  } else {
    false
  }
}
/// This function is similar to is_supported_ext but adds additional extensions
/// supported by `deno fmt`.
This function is similar to is_supported_ext but adds additional extensions
supported by `deno fmt`.
This function is similar to is_supported_ext but adds additional extensions supported by ` deno fmt ` .
fn is_supported_ext_fmt(path: &Path) -> bool {
  if let Some(ext) = get_extension(path) {
    matches!(
      ext.as_str(),
      "ts"
        | "tsx"
        | "js"
        | "jsx"
        | "cjs"
        | "cts"
        | "mjs"
        | "mts"
        | "json"
        | "jsonc"
        | "md"
        | "mkd"
        | "mkdn"
        | "mdwn"
        | "mdown"
        | "markdown"
    )
  } else {
    false
  }
}
fn is_supported_ext_fmt ( path : & Path ) -> bool { if let Some ( ext ) = get_extension ( path ) { matches ! ( ext as_str ( ) " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ) } else { false } }
This function is similar to is_supported_ext but adds additional extensions
supported by `deno fmt`.
This function is similar to is_supported_ext but adds additional extensions supported by ` deno fmt ` .
path
&Path
path
&Path