Skip to content

Commit

Permalink
fix tsc and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
elbotho committed Dec 14, 2023
1 parent 8cdce8b commit 1c8c8b6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"js-cookie": "^3.0.5",
"json-diff": "^1.0.6",
"katex": "^0.16.9",
"mathlive": "^0.97.4",
"mathlive": "^0.98.4",
"next": "^13.5.4",
"next-query-params": "^4.2.3",
"nprogress": "^0.2.0",
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/components/equations-app/math-field-2.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MathfieldElement from 'mathlive/dist/types/mathfield-element'
import type { MathfieldElement } from 'mathlive'
import { useState, useEffect, createRef, useRef } from 'react'

interface MathFieldProps {
Expand Down Expand Up @@ -70,7 +70,6 @@ export function MathField2(props: MathFieldProps) {
style={{ display: 'block' }}
ref={mf}
onInput={(evt) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const v = (evt.target as MathfieldElement).value
setValue(v)
if (props.onChange) {
Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/equations-app/math-field.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import { faSpinner } from '@fortawesome/free-solid-svg-icons'
import MathfieldElement from 'mathlive/dist/types/mathfield-element'
import type { MathfieldElement } from 'mathlive'
import { useState, useEffect, createRef } from 'react'

import { FaIcon } from '../fa-icon'
Expand Down Expand Up @@ -45,6 +45,7 @@ export function MathField(props: MathFieldProps) {
if (props.readonly) {
mf.current.readOnly = true
if (mf.current.registers) {
// @ts-expect-error not sure why readonly
mf.current.registers.arraystretch = 1.5
}
} else {
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/pages/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const getStaticProps: GetStaticProps<PrivacyPageData> = async (

return { props: { contentHtml, isGerman, lastChange } }
} catch (e) {
// eslint-disable-next-line no-console
console.error(e)
return { notFound: true }
}
Expand Down
8 changes: 6 additions & 2 deletions apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
"@/*": ["./src/*"],
"@editor/*": ["../../packages/editor/src/*"]
},
"plugins": [{ "name": "next" }],
"module": "ES2022",
"plugins": [
{
"name": "next"
}
],
"module": "esnext",
"moduleResolution": "bundler"
},
"include": [
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4367,7 +4367,7 @@ __metadata:
js-cookie: ^3.0.5
json-diff: ^1.0.6
katex: ^0.16.9
mathlive: ^0.97.4
mathlive: ^0.98.4
micromark: ^4.0.0
msw: ^0.47.4
next: ^13.5.4
Expand Down Expand Up @@ -11122,12 +11122,12 @@ __metadata:
languageName: node
linkType: hard

"mathlive@npm:^0.97.4":
version: 0.97.4
resolution: "mathlive@npm:0.97.4"
"mathlive@npm:^0.98.4":
version: 0.98.4
resolution: "mathlive@npm:0.98.4"
dependencies:
"@cortex-js/compute-engine": 0.22.0
checksum: 268a4e4102e3e22d65e0c9dca050291333b03febe98d0ed0851bd3a7e8f0df56aba2ae454738e2846019ae415ff0116976956927b1d7f83f9df1408a10ffc52d
checksum: 961e29aa53208ebbdb7ec87446354d5d19ee9cd1812d3655e64665d72e4394c190caba88cf2c9cf60318917137bbba604f88204d7bcb4a1a7a5016bb526415e5
languageName: node
linkType: hard

Expand Down

0 comments on commit 1c8c8b6

Please sign in to comment.