Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Use deno fmt for deno projects instead of prettier #1626

Closed Answered by fitrh
Callumk7 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use condition

local sources = {
  b.formatting.deno_fmt.with({
    condition = function(u)
      return u.root_has_file({ 'deno.json' })
    end,
  }),
}

You can read BUILTIN_CONFIG.md#conditional-sources for the details

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Callumk7
Comment options

Answer selected by Callumk7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants