Skip to content

Commit

Permalink
Merge pull request #548 from scala-js/topic/reformat
Browse files Browse the repository at this point in the history
Change auto-formatting settings
  • Loading branch information
japgolly authored Sep 4, 2021
2 parents 12a2c4b + 12dbdba commit 25d2ace
Show file tree
Hide file tree
Showing 57 changed files with 14,877 additions and 18,492 deletions.
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

0 comments on commit 25d2ace

Please sign in to comment.