style(sdk): apply prettier with single quotes

Run prettier across sdk/base and sdk/package to apply the
standardized quote style (single quotes matching web).
This commit is contained in:
Aiden McClelland
2026-02-05 13:34:01 -07:00
parent dc815664c4
commit 855c1f1b07
266 changed files with 5682 additions and 5389 deletions

View File

@@ -11,7 +11,7 @@ export function getRandomCharInSet(charset: string): string {
}
charIdx -= range.len
}
throw new Error("unreachable")
throw new Error('unreachable')
}
function stringToCharSet(charset: string): CharSet {
let set: CharSet = { ranges: [], len: 0 }
@@ -20,10 +20,10 @@ function stringToCharSet(charset: string): CharSet {
let in_range = false
for (let char of charset) {
switch (char) {
case ",":
case ',':
if (start !== null && end !== null) {
if (start!.charCodeAt(0) > end!.charCodeAt(0)) {
throw new Error("start > end of charset")
throw new Error('start > end of charset')
}
const len = end.charCodeAt(0) - start.charCodeAt(0) + 1
set.ranges.push({
@@ -40,20 +40,20 @@ function stringToCharSet(charset: string): CharSet {
set.ranges.push({ start, end: start, len: 1 })
start = null
} else if (start !== null && in_range) {
end = ","
end = ','
} else if (start === null && end === null && !in_range) {
start = ","
start = ','
} else {
throw new Error('unexpected ","')
}
break
case "-":
case '-':
if (start === null) {
start = "-"
start = '-'
} else if (!in_range) {
in_range = true
} else if (in_range && end === null) {
end = "-"
end = '-'
} else {
throw new Error('unexpected "-"')
}
@@ -70,7 +70,7 @@ function stringToCharSet(charset: string): CharSet {
}
if (start !== null && end !== null) {
if (start!.charCodeAt(0) > end!.charCodeAt(0)) {
throw new Error("start > end of charset")
throw new Error('start > end of charset')
}
const len = end.charCodeAt(0) - start.charCodeAt(0) + 1
set.ranges.push({