Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Nov 27, 2024
1 parent 5ac04b6 commit 8c4b7ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.json → .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"prettier"
"prettier",
],
"settings": {
"react": {
"version": "detect"
}
"version": "detect",
},
},
"rules": {
"react/prop-types": "off",
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/no-named-as-default": "off"
"import/no-named-as-default": "off",
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"typescript/no-var-requires": "off"
}
}
]
"typescript/no-var-requires": "off",
},
},
],
}
7 changes: 4 additions & 3 deletions src/components/Home/AboutMaia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,10 @@ export const AboutMaia = () => {
<p>
{' '}
All our data is from the wonderful archive at{' '}
<a href="https://database.lichess.org/">database.lichess.org</a>.
We converted the raw PGN raw data dumps into CSV, and have made
the CSV we used for testing available at{' '}
<a href="https://database.lichess.org/">
database.lichess.org
</a>. We converted the raw PGN raw data dumps into CSV, and have
made the CSV we used for testing available at{' '}
<a href="http://csslab.cs.toronto.edu/datasets/#maia_kdd">
csslab.cs.toronto.edu/datasets
</a>
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useStockfishEngine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ const sharedWasmMemory = (lo: number, hi = 32767): WebAssembly.Memory => {

const setupStockfish = (): Promise<StockfishWeb> => {
return new Promise<StockfishWeb>((resolve, reject) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
import('lila-stockfish-web/sf17-79.js').then((makeModule: any) => {
makeModule
.default({
wasmMemory: sharedWasmMemory(2560!),
wasmMemory: sharedWasmMemory(2560),
onError: (msg: string) => reject(new Error(msg)),
locateFile: (name: string) => `/stockfish/${name}`,
})
Expand Down

0 comments on commit 8c4b7ac

Please sign in to comment.