Closed slateblua closed 8 months ago
Should we use camelCase or PascalCase for composable functions?
Should we use camelCase or PascalCase for composable functions?
Yes, API enforces you to use PascalCase to create composables. See the guidelines
Use Ktlint 1.0.1 or newer and add ktlint_function_naming_ignore_when_annotated_with = Composable
to your .editorconfig, check https://pinterest.github.io/ktlint/latest/rules/standard/#function-naming
If you need more compose rules, could add https://github.com/mrmans0n/compose-rules to your rule sets.
Use Ktlint 1.0.1 or newer and add
ktlint_function_naming_ignore_when_annotated_with = Composable
to your .editorconfig, check https://pinterest.github.io/ktlint/latest/rules/standard/#function-naming
Thank you very much.
JetPack enforces developers to use PascalCase to name Composable components. However, analyzer floods the terminal with warning messages.