Ignore formatting code by preceding it with a comment in TS/JS/JSONC:

    1. // deno-fmt-ignore
    2. 1, 0, 0,
    3. 0, 1, 0,

    Or ignore an entire file by adding a // deno-fmt-ignore-file comment at the top of the file.

    Configuration

    Starting with Deno v1.14 a formatter can be customized using either a configuration file or following CLI flags:

    • --options-line-width - The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases. Defaults to 80.

    • --options-indent-width - The number of characters for an indent. Defaults to 2.

    • --options-prose-wrap={always,never,preserve} - Define how prose should be wrapped in Markdown files. Defaults to “always”.