.editorconfig 757 B

123456789101112131415
  1. root = true
  2. [*.{kt,kts}]
  3. # ktlint's no-unused-imports is a false positive on receiver/extension-member imports
  4. # (e.g. ButtonDefaults.transparent / .noElevation) and would strip imports that are
  5. # actually used, breaking compilation when ktlintFormat runs. Disable just that rule so
  6. # auto-format stays safe.
  7. ktlint_standard_no-unused-imports = disabled
  8. # One line is max 120 chars (project rule: 80-120).
  9. max_line_length = 120
  10. # Keep expression bodies on the signature line — `fun Foo() = preview {` — instead of
  11. # wrapping after `=` onto the next line. `default` joins the body expression with the
  12. # signature whenever it fits max_line_length.
  13. ktlint_standard_function-signature = enabled
  14. ktlint_function_signature_body_expression_wrapping = default