Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 11, 2024
1 parent c2bb4d0 commit 2ffcef4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist
dist
**/*/build
4 changes: 2 additions & 2 deletions apps/app/src/react/api/clipboard/casparCGClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function handleCasparCGClient(context: ClipBoardContext, str: strin
}[] = []
const parts: { part: Part; resources: ResourceAny[] }[] = []

for (const itemXML of xml.querySelectorAll(':root>item')) {
for (const itemXML of xml.querySelectorAll(':root>item') as any) {
const item = parseItem(itemXML)

// Is Group?
Expand Down Expand Up @@ -63,7 +63,7 @@ export async function handleCasparCGClient(context: ClipBoardContext, str: strin
function parseItem(xml: Element): ItemAny {
const o: ItemAny = {} as any

for (const child of xml.children) {
for (const child of xml.children as any) {
const key = child.tagName
if (key === 'items') {
const items = []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react'
import { IconButton, InputAdornment, MenuItem, Popover, Tooltip, Typography } from '@mui/material'
import useId from '@mui/material/utils/useId'
import { IconButton, InputAdornment, MenuItem, Popover, Tooltip, Typography, unstable_useId } from '@mui/material'
import { HiLink, HiOutlineX } from 'react-icons/hi'
import { useMemoComputedObject, useMemoComputedValue } from '../../../mobx/lib.js'
import { store } from '../../../mobx/store.js'
Expand Down Expand Up @@ -37,7 +36,7 @@ export const AnalogInputOverridePicker: React.FC<{
path: string
onSave: OnSave
}> = observer(function AnalogInputOverridePicker({ objs, path, onSave }) {
const elementId = useId()
const elementId = unstable_useId()
const [anchorEl, setAnchorEl] = useState<Element | null>(null)

const analogInputOptions = useMemoComputedObject(() => {
Expand Down
5 changes: 2 additions & 3 deletions apps/app/src/react/components/inputs/parsedValueInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FormControl, InputLabel, OutlinedInput, Tooltip } from '@mui/material'
import useId from '@mui/material/utils/useId'
import { FormControl, InputLabel, OutlinedInput, Tooltip, unstable_useId } from '@mui/material'
import { isEqual } from 'lodash-es'
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react'

Expand Down Expand Up @@ -30,7 +29,7 @@ export function ParsedValueInput<V>(
/** Display a tooltip when typing / focused */
focusTooltip?: string
): JSX.Element {
const inputId = useId()
const inputId = unstable_useId()
const [value, setValue] = useState<string>('')
const [hasFocus, setHasFocus] = useState<boolean>(false)
const selectorPosition = useRef<number | null>(null)
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/react/mobx/GDDValidatorStoreStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class GDDValidatorStore {
try {
const v = await setupSchemaValidator({
fetch: async (url: string) => {
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const response = await fetch(url)
return await response.json()
},
Expand Down
1 change: 1 addition & 0 deletions apps/tsr-bridge/src/logging/logging.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as Winston from 'winston'
// @ts-expect-error This is a hack to ensure that electron-builder includes this file.
// eslint-disable-next-line n/no-missing-import
import consoleTransport from 'winston/dist/winston/transports/console.js'
import { IPCClient } from '../electron/IPCClient.js'
import IPCTransport from './ipc-transport.js'
Expand Down
2 changes: 1 addition & 1 deletion scripts/license-check.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-process-exit, n/no-unpublished-require, n/no-extraneous-require */
/* eslint-disable n/no-process-exit, n/no-unpublished-require, n/no-extraneous-require */
'use strict'
const fs = require('fs')
const path = require('path')
Expand Down
1 change: 1 addition & 0 deletions shared/packages/peripherals/src/peripherals/streamdeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { openStreamDeck, listStreamDecks, StreamDeck, DeviceModelId } from '@elg
import { onKnownPeripheralCallback, Peripheral, WatchReturnType } from './peripheral.js'
import { estimateTextWidth, limitTextWidth } from './lib/estimateTextSize.js'
import PQueue from 'p-queue'
// eslint-disable-next-line n/no-missing-import
import { StreamDeckDeviceInfo } from '@elgato-stream-deck/node/dist/device.js'
import { protectString } from '@shared/models'

Expand Down
1 change: 1 addition & 0 deletions shared/packages/tsr-bridge/src/sideload/TriCaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { DeviceOptionsTriCaster } from 'timeline-state-resolver'
import {
TriCasterConnection,
TriCasterInfo,
// eslint-disable-next-line n/no-missing-import
} from 'timeline-state-resolver/dist/integrations/tricaster/triCasterConnection.js'
import {
ResourceAny,
Expand Down
1 change: 1 addition & 0 deletions shared/packages/tsr-bridge/src/sideload/VMix.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DeviceOptionsVMix } from 'timeline-state-resolver'
// eslint-disable-next-line n/no-missing-import
import { VMix } from 'timeline-state-resolver/dist/integrations/vmix/connection.js'
import {
ResourceAny,
Expand Down

0 comments on commit 2ffcef4

Please sign in to comment.