Skip to content

Commit 25d2ace

Browse files
authored
Merge pull request #548 from scala-js/topic/reformat
Change auto-formatting settings
2 parents 12a2c4b + 12dbdba commit 25d2ace

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+14877
-18492
lines changed

.scalafmt.conf

+23-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
version = 2.0.0-RC5
1+
version = 3.0.2
22
project.git = true
33
style = Scala.js
44
project.includeFilters = ["src/main/scala/org/scalajs/.*\\.scala"]
5-
maxColumn = 79
6-
docstrings = JavaDoc
5+
maxColumn = 120
6+
7+
danglingParentheses.callSite = false
8+
danglingParentheses.ctrlSite = false
9+
danglingParentheses.defnSite = false
10+
docstrings.style = SpaceAsterisk
11+
literals.hexDigits = Upper
12+
literals.scientific = Upper
13+
newlines.afterCurlyLambdaParams = never
14+
newlines.alwaysBeforeElseAfterCurlyIf = false
15+
newlines.beforeCurlyLambdaParams = never
16+
newlines.topLevelStatements = [before]
17+
optIn.forceBlankLineBeforeDocstring = true
18+
19+
rewrite.sortModifiers.order = [
20+
"override", "final", "implicit",
21+
"sealed", "abstract",
22+
"private", "protected",
23+
"open", "opaque", "infix",
24+
"transparent", "inline",
25+
"lazy"
26+
]

src/main/scala/org/scalajs/dom/AbortController.scala

+28-37
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,47 @@ package org.scalajs.dom
33
import scala.scalajs.js
44
import scala.scalajs.js.annotation.JSGlobal
55

6-
/**
7-
* The AbortController interface represents a controller object that allows you
8-
* to abort one or more DOM requests as and when desired.
9-
*
10-
* MDN
11-
*/
6+
/** The AbortController interface represents a controller object that allows you to abort one or more DOM requests as
7+
* and when desired.
8+
*
9+
* MDN
10+
*/
1211
@js.native
1312
@JSGlobal
1413
class AbortController() extends js.Object {
1514

16-
/**
17-
* Returns a AbortSignal object instance, which can be used to communicate
18-
* with/abort a DOM request
19-
*
20-
* MDN
21-
*/
15+
/** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request
16+
*
17+
* MDN
18+
*/
2219
val signal: AbortSignal = js.native
2320

24-
/**
25-
* Aborts a DOM request before it has completed. This is able to abort fetch
26-
* requests, consumption of any response Body, and streams.
27-
*
28-
* MDN
29-
*/
21+
/** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response
22+
* Body, and streams.
23+
*
24+
* MDN
25+
*/
3026
def abort(): Unit = js.native
3127
}
3228

33-
/**
34-
* The AbortSignal interface represents a signal object that allows you to
35-
* communicate with a DOM request (such as a Fetch) and abort it if required
36-
* via an AbortController object.
37-
*
38-
* MDN
39-
*/
29+
/** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a
30+
* Fetch) and abort it if required via an AbortController object.
31+
*
32+
* MDN
33+
*/
4034
@js.native
4135
trait AbortSignal extends EventTarget {
4236

43-
/**
44-
* A Boolean that indicates whether the request(s) the signal is
45-
* communicating with is/are aborted (true) or not (false).
46-
*
47-
* MDN
48-
*/
37+
/** A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not
38+
* (false).
39+
*
40+
* MDN
41+
*/
4942
def aborted: Boolean = js.native
5043

51-
/**
52-
* Invoked when an abort event fires, i.e. when the DOM request(s) the signal
53-
* is communicating with is/are aborted.
54-
*
55-
* MDN
56-
*/
44+
/** Invoked when an abort event fires, i.e. when the DOM request(s) the signal is communicating with is/are aborted.
45+
*
46+
* MDN
47+
*/
5748
var onabort: js.Function0[Any] = js.native
5849
}

0 commit comments

Comments
 (0)