Skip to content

Commit e8068f4

Browse files
authored
Merge pull request #620 from scala-steward/update/scalafmt-core-3.0.8
Update scalafmt-core to 3.0.8
2 parents a96c76d + 0e6d7b0 commit e8068f4

9 files changed

+11
-11
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.0.7
1+
version = 3.0.8
22
runner.dialect = scala213source3
33
project.git = true
44
style = Scala.js

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait CacheQueryOptions extends js.Object {
1111

1212
var ignoreMethod: Boolean = js.native // false
1313

14-
var ignoreVary: Boolean = js.native //false
14+
var ignoreVary: Boolean = js.native // false
1515

1616
var cacheName: String = js.native
1717
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class FileReader() extends EventTarget {
7676
@js.native
7777
@JSGlobal
7878
object FileReader extends js.Object {
79-
//states
79+
// states
8080
val EMPTY: Short = js.native
8181
val LOADING: Short = js.native
8282
val DONE: Short = js.native

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ trait ReadableStream[+T] extends js.Object {
9090
* allow interference between the two branches. (Let us know if you think we should add an option to tee that creates
9191
* structured clones of the chunks for each branch.)
9292
*/
93-
def tee(): js.Array[_ <: ReadableStream[T]] = js.native //TODO js.Tuple2[ReadableStream[T], ReadableStream[T]]
93+
def tee(): js.Array[_ <: ReadableStream[T]] = js.native // TODO js.Tuple2[ReadableStream[T], ReadableStream[T]]
9494
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Request(input: RequestInfo, init: RequestInit = null) extends Body {
2323
def `mediaType`: RequestType = js.native
2424

2525
/** Contains the URL of the request. */
26-
def url: String = js.native //should be USVString
26+
def url: String = js.native // should be USVString
2727

2828
/** Contains the associated Headers object of the request. */
2929
def headers: Headers = js.native
@@ -42,7 +42,7 @@ class Request(input: RequestInfo, init: RequestInit = null) extends Body {
4242

4343
def redirect: RequestRedirect = js.native
4444

45-
def integrity: String = js.native //should be DOMString
45+
def integrity: String = js.native // should be DOMString
4646

4747
def keepalive: Boolean = js.native
4848

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class Response(content: BodyInit = null, init: ResponseInit = null) extends Body
2525
def ok: Boolean = js.native
2626

2727
/** Contains the status code of the response (e.g., 200 for a success). */
28-
val status: Int = js.native //actually returns unsigned short
28+
val status: Int = js.native // actually returns unsigned short
2929

3030
/** Contains the status message corresponding to the status code (e.g., OK for 200). */
31-
def statusText: ByteString = js.native //actually returns ByteString
31+
def statusText: ByteString = js.native // actually returns ByteString
3232

3333
/** Contains the Headers object associated with the response. */
3434
val headers: Headers = js.native

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait WindowClient extends Client {
1212
/** The visibilityState read-only property of the WindowClient interface indicates the visibility of the current
1313
* client. This value can be one of hidden, visible, prerender, or unloaded.
1414
*/
15-
//todo: stubs for https://www.w3.org/TR/page-visibility/#dom-document-visibilitystate
15+
// todo: stubs for https://www.w3.org/TR/page-visibility/#dom-document-visibilitystate
1616
def visibilityState: String = js.native
1717

1818
/** The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers {
2828
def isSecureContext: Boolean = js.native
2929

3030
/** Returns the origin of the global scope, serialized as a string. */
31-
def origin: String = js.native //should be USVString
31+
def origin: String = js.native // should be USVString
3232

3333
/** Starts the process of fetching a resource from the network. */
3434
def fetch(info: RequestInfo, init: RequestInit = js.native): js.Promise[Response] = js.native

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ package object dom {
3232

3333
/** defined at [[https://fetch.spec.whatwg.org/#body-mixin ¶6.2 Body mixin]] in whatwg Fetch spec */
3434
type BodyInit =
35-
Blob | BufferSource | FormData | String //todo: add URLSearchParams
35+
Blob | BufferSource | FormData | String // todo: add URLSearchParams
3636

3737
/** WebIDL sequence<T> is js.Array[T] | JSIterable[T]. However @mseddon knows at least Blink's IDL compiler treats
3838
* these as simply js.Array[T] for now. We keep this type as a reminder to check in more detail

0 commit comments

Comments
 (0)