Skip to content

Change auto-formatting settings #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
version = 2.0.0-RC5
version = 3.0.2
project.git = true
style = Scala.js
project.includeFilters = ["src/main/scala/org/scalajs/.*\\.scala"]
maxColumn = 79
docstrings = JavaDoc
maxColumn = 120

danglingParentheses.callSite = false
danglingParentheses.ctrlSite = false
danglingParentheses.defnSite = false
docstrings.style = SpaceAsterisk
literals.hexDigits = Upper
literals.scientific = Upper
newlines.afterCurlyLambdaParams = never
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.beforeCurlyLambdaParams = never
newlines.topLevelStatements = [before]
optIn.forceBlankLineBeforeDocstring = true

rewrite.sortModifiers.order = [
"override", "final", "implicit",
"sealed", "abstract",
"private", "protected",
"open", "opaque", "infix",
"transparent", "inline",
"lazy"
]
65 changes: 28 additions & 37 deletions src/main/scala/org/scalajs/dom/AbortController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,47 @@ package org.scalajs.dom
import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal

/**
* The AbortController interface represents a controller object that allows you
* to abort one or more DOM requests as and when desired.
*
* MDN
*/
/** The AbortController interface represents a controller object that allows you to abort one or more DOM requests as
* and when desired.
*
* MDN
*/
@js.native
@JSGlobal
class AbortController() extends js.Object {

/**
* Returns a AbortSignal object instance, which can be used to communicate
* with/abort a DOM request
*
* MDN
*/
/** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request
*
* MDN
*/
val signal: AbortSignal = js.native

/**
* Aborts a DOM request before it has completed. This is able to abort fetch
* requests, consumption of any response Body, and streams.
*
* MDN
*/
/** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response
* Body, and streams.
*
* MDN
*/
def abort(): Unit = js.native
}

/**
* The AbortSignal interface represents a signal object that allows you to
* communicate with a DOM request (such as a Fetch) and abort it if required
* via an AbortController object.
*
* MDN
*/
/** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a
* Fetch) and abort it if required via an AbortController object.
*
* MDN
*/
@js.native
trait AbortSignal extends EventTarget {

/**
* A Boolean that indicates whether the request(s) the signal is
* communicating with is/are aborted (true) or not (false).
*
* MDN
*/
/** A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not
* (false).
*
* MDN
*/
def aborted: Boolean = js.native

/**
* Invoked when an abort event fires, i.e. when the DOM request(s) the signal
* is communicating with is/are aborted.
*
* MDN
*/
/** Invoked when an abort event fires, i.e. when the DOM request(s) the signal is communicating with is/are aborted.
*
* MDN
*/
var onabort: js.Function0[Any] = js.native
}
Loading