root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{kt,kts}]
# ktlint configuration for Compose Multiplatform.
# - function-naming is disabled because @Composable functions and Kotlin/Native
#   entry-point factories (e.g. MainViewController) are PascalCase by convention.
# - filename is disabled because Compose-Multiplatform entry-point files
#   (jvmMain/main.kt, webMain/main.kt) follow the Kotlin `fun main()` convention.
ktlint_standard_function-naming = disabled
ktlint_standard_filename = disabled

[*.md]
trim_trailing_whitespace = false
