Coder Social home page Coder Social logo

dprint-plugin-biome's Introduction

dprint

CI Homebrew

Monorepo for dprint—a pluggable and configurable code formatting platform.

Links

Plugins

Notes

This repo is under active early development.

  1. The interface between the CLI and plugins might change often. You may need to keep updating to the latest version of both the CLI and plugins (the CLI will let you know what to do).
    • An upgrade path will be outlined in the release notes when this occurs.
  2. I do a lot of this development in my spare time. Please consider sponsoring if you are a commercial company using this.

dprint-plugin-biome's People

Contributors

dprintbot avatar dsherret avatar ticecosmos avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ticecosmos

dprint-plugin-biome's Issues

Crashes when setting lineWidth

when I try to format with biome, I met some errors:

shell outputs:

dprint fmt

❯ dprint fmt
Critical error formatting D:\dev\vite-project\.eslintrc.cjs. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\dprint.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\biome.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\package.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\tsconfig.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\.vscode\settings.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\tsconfig.node.json. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13c70)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\vite.config.ts. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\src\App.tsx. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\src\main.tsx. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Critical error formatting D:\dev\vite-project\src\vite-env.d.ts. Cannot continue. Message: Originally panicked in dprint-plugin-biome, then failed reinitialize. This may be a bug in the plugin, the dprint cli is out of date, or the plugin is out of date.
Original error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Reinitialize error: RuntimeError: unreachable
    at __rust_start_panic (<module>[4835]:0x2d22cb)
    at rust_panic (<module>[4826]:0x2d21a7)
    at std::panicking::rust_panic_with_hook::hc20eadded6bfe687 (<module>[4825]:0x2d2199)
    at std::panicking::begin_panic_handler::{{closure}}::h82415fe35b0e2001 (<module>[4814]:0x2d1821)
    at std::sys_common::backtrace::__rust_end_short_backtrace::h71f504d46a203d88 (<module>[4813]:0x2d1744)
    at rust_begin_unwind (<module>[4820]:0x2d1e07)
    at core::panicking::panic_fmt::h7a368385936888dc (<module>[4909]:0x2d39f6)
    at core::result::unwrap_failed::hbe79a418fab461ff (<module>[4956]:0x2db31a)
    at dprint_plugin_biome::format_text::format_text::h97dfd125e4aff5c3 (<module>[123]:0x13640)
    at format (<module>[65]:0xdc89)
Had 11 error(s) formatting.
  1. I'd like to know how to setup dprint and biome, so that they can work together. Should there both two exeutable CLIs in my environment? Or just only dprint enough.

here comes my dprint-biome-plugin settings:

// dprint.json
{
  "biome": {
    "lineEnding": "lf",
    "indentSize": 2,
    "indentStyle": "space",
    "semicolons": "always",
    "quoteStyle": "double",
    "trailingComma": "all",
    "arrowParentheses": "always",
    "quoteProperties": "asNeeded",
    "bracketSameLine": true,
    "bracketSpacing": true
  }
  "plugins": [
     "https://plugins.dprint.dev/biome-0.2.1.wasm",
  ]
}

// biome.json
{
  "$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
  "organizeImports": {
    "enabled": true
  },
  "linter": {
    "enabled": true,
    "rules": {
      "recommended": true
    }
  }
}

my dprint version: 0.43.2
my biome version: 1.4.1

  1. I also want to know that if I use dprint-biome-config, should I add dprint-json-config etc. too?

Appreciate any reply!

Support for organizing imports

I'd like to be able to use biome's import oganizing while also formatting code otherwise. https://biomejs.dev/analyzer/

The way currently to do it, is to install biome to npm project and call it separately with npm script. Another way is to use exec plugin. I got it working with below setup. However, this does not feel optimal way. It needs to call npx to install biome and then run it through node, when biome plugin is already added to dprint setup.

  "exec": {
    "commands": [{
      "associations": [
        "src/**/*.{ts,js}"
      ],
      "command": "npx @biomejs/biome check --apply --formatter-enabled=true --linter-enabled=false --organize-imports-enabled=true {{file_path}}",
      "stdin": false
    }]
  }

Doesn't support "overrides" configuration

A very useful feature of Biome is its ability to override configuration for certain paths via the overrides config entry.

For example, this allows us to do things like making biome aware that .vscode/**.json files can have comments + hanging commas; while not changing that configuration for other JSON files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.