diff --git a/.editorconfig b/.editorconfig index 91fe5a0..4a93356 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,13 @@ [*.{kt,kts}] ij_kotlin_allow_trailing_comma = true ij_kotlin_allow_trailing_comma_on_call_site = true + +ktlint_standard_blank-line-before-declaration = disabled +ktlint_standard_function-naming = disabled +ktlint_standard_function-signature = disabled +ktlint_standard_no-blank-line-in-list = disabled +ktlint_standard_no-empty-first-line-in-class-body = disabled + +# `string-template-indent` is disabled because it depends on `multiline-expression-wrapping`. +ktlint_standard_multiline-expression-wrapping = disabled +ktlint_standard_string-template-indent = disabled diff --git a/core/src/jsMain/kotlin/Exceptions.kt b/core/src/jsMain/kotlin/Exceptions.kt index f3e342e..c8fba1f 100644 --- a/core/src/jsMain/kotlin/Exceptions.kt +++ b/core/src/jsMain/kotlin/Exceptions.kt @@ -12,4 +12,6 @@ public class EventHandlerException(cause: Throwable?, event: Event) : EventExcep public class ErrorEventException(event: Event) : EventException("An error event was received.", cause = null, event) public class OpenBlockedException(public val name: String, event: Event) : EventException("Resource in use: $name.", cause = null, event) -public class AbortTransactionException(event: Event) : EventException("Transaction aborted while waiting for completion.", cause = null, event) +public class AbortTransactionException( + event: Event, +) : EventException("Transaction aborted while waiting for completion.", cause = null, event) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3230027..09b6af4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,5 +8,5 @@ coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", ve [plugins] dokka = { id = "org.jetbrains.dokka", version = "1.9.10" } kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" } -kotlinter = { id = "org.jmailen.kotlinter", version = "3.16.0" } +kotlinter = { id = "org.jmailen.kotlinter", version = "4.0.0" } maven-publish = { id = "com.vanniktech.maven.publish", version = "0.25.3" }