Created
April 18, 2024 18:58
-
-
Save toresbe/254e0b58a0cba141ffcc49fd4722a201 to your computer and use it in GitHub Desktop.
.editorconfig for ktlint and IntelliJ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*.{kt,kts}] | |
max_line_length = off | |
# If EditorConfig support is enabled in IntelliJ IDEA, the following settings override Code Style settings. | |
# This is the minimal set to make IDEAs formatter compatible with ktlint. | |
# The settings here are the equivalent to the settings prescribed in | |
# https://pinterest.github.io/ktlint/latest/rules/configuration-intellij-idea/ | |
insert_final_newline = true | |
# This is generally the default. | |
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL | |
# Disable wildcard imports | |
ij_kotlin_name_count_to_use_star_import = 2147483647 | |
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647 | |
# For java.util., ... too | |
ij_kotlin_packages_to_use_import_on_demand = unset | |
# End EditorConfig settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment