mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: use tabs for prettier and biome (#14283)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"widdershins": "^4.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"semver": "7.5.3",
|
||||
"jsonpointer": "5.0.1"
|
||||
}
|
||||
"dependencies": {
|
||||
"widdershins": "^4.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"semver": "7.5.3",
|
||||
"jsonpointer": "5.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ var (
|
||||
// CLI option types:
|
||||
"github.com/coder/serpent",
|
||||
}
|
||||
indent = " "
|
||||
indent = "\t"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
+4
-4
@@ -1,17 +1,17 @@
|
||||
// From codersdk/genericmap.go
|
||||
export interface Buzz {
|
||||
readonly foo: Foo
|
||||
readonly bazz: string
|
||||
readonly foo: Foo
|
||||
readonly bazz: string
|
||||
}
|
||||
|
||||
// From codersdk/genericmap.go
|
||||
export interface Foo {
|
||||
readonly bar: string
|
||||
readonly bar: string
|
||||
}
|
||||
|
||||
// From codersdk/genericmap.go
|
||||
export interface FooBuzz<R extends Custom> {
|
||||
readonly something: (readonly R[])
|
||||
readonly something: (readonly R[])
|
||||
}
|
||||
|
||||
// From codersdk/genericmap.go
|
||||
|
||||
+14
-14
@@ -1,35 +1,35 @@
|
||||
// From codersdk/generics.go
|
||||
export interface Complex<C extends comparable, S extends Single, T extends Custom> {
|
||||
readonly dynamic: Fields<C, boolean, string, S>
|
||||
readonly order: FieldsDiffOrder<C, string, S, T>
|
||||
readonly comparable: C
|
||||
readonly single: S
|
||||
readonly static: Static
|
||||
readonly dynamic: Fields<C, boolean, string, S>
|
||||
readonly order: FieldsDiffOrder<C, string, S, T>
|
||||
readonly comparable: C
|
||||
readonly single: S
|
||||
readonly static: Static
|
||||
}
|
||||
|
||||
// From codersdk/generics.go
|
||||
export interface Dynamic<A extends any, S extends Single> {
|
||||
readonly dynamic: Fields<boolean, A, string, S>
|
||||
readonly comparable: boolean
|
||||
readonly dynamic: Fields<boolean, A, string, S>
|
||||
readonly comparable: boolean
|
||||
}
|
||||
|
||||
// From codersdk/generics.go
|
||||
export interface Fields<C extends comparable, A extends any, T extends Custom, S extends Single> {
|
||||
readonly comparable: C
|
||||
readonly any: A
|
||||
readonly custom: T
|
||||
readonly again: T
|
||||
readonly single_constraint: S
|
||||
readonly comparable: C
|
||||
readonly any: A
|
||||
readonly custom: T
|
||||
readonly again: T
|
||||
readonly single_constraint: S
|
||||
}
|
||||
|
||||
// From codersdk/generics.go
|
||||
export interface FieldsDiffOrder<A extends any, C extends comparable, S extends Single, T extends Custom> {
|
||||
readonly Fields: Fields<C, A, T, S>
|
||||
readonly Fields: Fields<C, A, T, S>
|
||||
}
|
||||
|
||||
// From codersdk/generics.go
|
||||
export interface Static {
|
||||
readonly static: Fields<string, number, number, string>
|
||||
readonly static: Fields<string, number, number, string>
|
||||
}
|
||||
|
||||
// From codersdk/generics.go
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// From codersdk/genericslice.go
|
||||
export interface Bar {
|
||||
readonly Bar: string
|
||||
readonly Bar: string
|
||||
}
|
||||
|
||||
// From codersdk/genericslice.go
|
||||
export interface Foo<R extends any> {
|
||||
readonly Slice: (readonly R[])
|
||||
readonly TwoD: (readonly (readonly R[])[])
|
||||
readonly Slice: (readonly R[])
|
||||
readonly TwoD: (readonly (readonly R[])[])
|
||||
}
|
||||
@@ -98,7 +98,7 @@ func run(lint bool) error {
|
||||
}
|
||||
|
||||
enc := json.NewEncoder(w)
|
||||
enc.SetIndent("", " ")
|
||||
enc.SetIndent("", "\t")
|
||||
return enc.Encode(examples)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user