Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TheYoBots committed Jan 20, 2024
1 parent eb70ac4 commit 46adefc
Show file tree
Hide file tree
Showing 29 changed files with 52 additions and 48 deletions.
4 changes: 2 additions & 2 deletions ui/analyse/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"noImplicitAny": false
}
"noImplicitAny": false,
},
}
12 changes: 8 additions & 4 deletions ui/ceval/src/ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,21 @@ export default function (opts: CevalOpts): CevalCtrl {
const maxWasmPages = (minPages: number): number => {
if (!growableSharedMem) return minPages;
let maxPages = 32768; // hopefully desktop browser, 2 GB max shared
if (isAndroid()) maxPages = 8192; // 512 MB max shared
else if (isIPad()) maxPages = 8192; // 512 MB max shared
if (isAndroid())
maxPages = 8192; // 512 MB max shared
else if (isIPad())
maxPages = 8192; // 512 MB max shared
else if (isIOS()) maxPages = 4096; // 256 MB max shared
return Math.max(minPages, maxPages);
};
const maxHashMB = (): number => {
let maxHash = 256; // this is conservative but safe, mostly desktop firefox / mac safari users here
if (navigator.deviceMemory) maxHash = pow2floor(navigator.deviceMemory * 128); // chrome/edge/opera

if (isAndroid()) maxHash = 64; // budget androids are easy to crash @ 128
else if (isIPad()) maxHash = 64; // ipados safari pretends to be desktop but acts more like iphone
if (isAndroid())
maxHash = 64; // budget androids are easy to crash @ 128
else if (isIPad())
maxHash = 64; // ipados safari pretends to be desktop but acts more like iphone
else if (isIOS()) maxHash = 32;

return maxHash;
Expand Down
4 changes: 2 additions & 2 deletions ui/ceval/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
2 changes: 1 addition & 1 deletion ui/challenge/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
2 changes: 1 addition & 1 deletion ui/chat/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../tsconfig.base.json",
"include": ["src"]
"include": ["src"],
}
2 changes: 1 addition & 1 deletion ui/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
2 changes: 1 addition & 1 deletion ui/dasher/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
2 changes: 1 addition & 1 deletion ui/editor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/game/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
4 changes: 2 additions & 2 deletions ui/insights/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"include": ["src"],
"compilerOptions": {
"lib": ["DOM", "ES2017"],
"target": "ES2017"
}
"target": "ES2017",
},
}
4 changes: 2 additions & 2 deletions ui/keyboardMove/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
2 changes: 1 addition & 1 deletion ui/learn/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/lobby/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"compilerOptions": {
"noImplicitAny": false,
"noImplicitThis": false,
"lib": ["DOM", "ES2016", "DOM.iterable"]
}
"lib": ["DOM", "ES2016", "DOM.iterable"],
},
}
2 changes: 1 addition & 1 deletion ui/msg/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
2 changes: 1 addition & 1 deletion ui/notify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/nvui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
4 changes: 2 additions & 2 deletions ui/palantir/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
"noImplicitAny": false
}
"noImplicitAny": false,
},
}
4 changes: 2 additions & 2 deletions ui/puz/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}
2 changes: 1 addition & 1 deletion ui/puzzle/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
2 changes: 1 addition & 1 deletion ui/round/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/serviceWorker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"compilerOptions": {
"lib": ["ES2017"],
"target": "ES2017",
"types": ["types-serviceworker"]
}
"types": ["types-serviceworker"],
},
}
4 changes: 2 additions & 2 deletions ui/site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"compilerOptions": {
"outDir": "./tmp",
"allowJs": true,
"noImplicitAny": false
}
"noImplicitAny": false,
},
}
2 changes: 1 addition & 1 deletion ui/speech/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
2 changes: 1 addition & 1 deletion ui/storm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "../tsconfig.base.json"
"extends": "../tsconfig.base.json",
}
4 changes: 2 additions & 2 deletions ui/tournament/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"noImplicitAny": false,
"noImplicitReturns": false
}
"noImplicitReturns": false,
},
}
4 changes: 2 additions & 2 deletions ui/tournamentCalendar/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"noImplicitAny": false
}
"noImplicitAny": false,
},
}
4 changes: 2 additions & 2 deletions ui/tournamentSchedule/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"noImplicitAny": false
}
"noImplicitAny": false,
},
}
4 changes: 2 additions & 2 deletions ui/tree/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../tsconfig_module.base.json",
"include": ["src"],
"compilerOptions": {
"outDir": "./dist"
}
"outDir": "./dist",
},
}

0 comments on commit 46adefc

Please sign in to comment.