Skip to content

Update scalafmt-core to 3.0.8 #620

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 2 commits into from
Oct 29, 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
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.0.7
version = 3.0.8
runner.dialect = scala213source3
project.git = true
style = Scala.js
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/CacheQueryOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait CacheQueryOptions extends js.Object {

var ignoreMethod: Boolean = js.native // false

var ignoreVary: Boolean = js.native //false
var ignoreVary: Boolean = js.native // false

var cacheName: String = js.native
}
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/FileReader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class FileReader() extends EventTarget {
@js.native
@JSGlobal
object FileReader extends js.Object {
//states
// states
val EMPTY: Short = js.native
val LOADING: Short = js.native
val DONE: Short = js.native
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/ReadableStream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ trait ReadableStream[+T] extends js.Object {
* allow interference between the two branches. (Let us know if you think we should add an option to tee that creates
* structured clones of the chunks for each branch.)
*/
def tee(): js.Array[_ <: ReadableStream[T]] = js.native //TODO js.Tuple2[ReadableStream[T], ReadableStream[T]]
def tee(): js.Array[_ <: ReadableStream[T]] = js.native // TODO js.Tuple2[ReadableStream[T], ReadableStream[T]]
}
4 changes: 2 additions & 2 deletions dom/src/main/scala/org/scalajs/dom/Request.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Request(input: RequestInfo, init: RequestInit = null) extends Body {
def `mediaType`: RequestType = js.native

/** Contains the URL of the request. */
def url: String = js.native //should be USVString
def url: String = js.native // should be USVString

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

def redirect: RequestRedirect = js.native

def integrity: String = js.native //should be DOMString
def integrity: String = js.native // should be DOMString

def keepalive: Boolean = js.native

Expand Down
4 changes: 2 additions & 2 deletions dom/src/main/scala/org/scalajs/dom/Response.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class Response(content: BodyInit = null, init: ResponseInit = null) extends Body
def ok: Boolean = js.native

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

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

/** Contains the Headers object associated with the response. */
val headers: Headers = js.native
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/WindowClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait WindowClient extends Client {
/** The visibilityState read-only property of the WindowClient interface indicates the visibility of the current
* client. This value can be one of hidden, visible, prerender, or unloaded.
*/
//todo: stubs for https://www.w3.org/TR/page-visibility/#dom-document-visibilitystate
// todo: stubs for https://www.w3.org/TR/page-visibility/#dom-document-visibilitystate
def visibilityState: String = js.native

/** The focused read-only property of the WindowClient interface is a Boolean that indicates whether the current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ trait WindowOrWorkerGlobalScope extends WindowBase64 with WindowTimers {
def isSecureContext: Boolean = js.native

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

/** Starts the process of fetching a resource from the network. */
def fetch(info: RequestInfo, init: RequestInit = js.native): js.Promise[Response] = js.native
Expand Down
2 changes: 1 addition & 1 deletion dom/src/main/scala/org/scalajs/dom/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ package object dom {

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

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