Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ module.exports = [
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/app-history.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createBrowserHistory, History } from 'history'

class AppHistory {
public static getInstance(): History<any> {
public static getInstance(): History {
if (!AppHistory.history) {
AppHistory.history = createBrowserHistory()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/text-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class TextInput extends React.Component<TextInputProps, TextInputState> {
type={type}
placeholder={placeholder}
floating={Boolean(floating)}
onBlur={(event: any) => this.onBlur(event)}
onBlur={(event: React.FocusEvent<HTMLInputElement>) => this.onBlur(event)}
valid={valid}
onChange={this.onChange}
onKeyDown={onKeyDown}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/text-time-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import Suggestions from './suggestions'
import { useValidationHelper } from '../helper/validation-helper'

interface TextTimeInputProps {
onSave: (entry: EntryInput) => any
onDelete?: () => any
onSave: (entry: EntryInput) => void
onDelete?: () => void
clearOnSave?: boolean
entry?: Pick<Entry, 'time' | 'text'>
disabled?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare module '*.woff2' {
declare module 'imagetracerjs'

declare module '*.json' {
const json: any
const json: unknown
export default json
}

Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/hooks/use-form-toast.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useEffect, useRef } from 'react'
import { FormState } from 'react-hook-form'
import { FieldValues, FormState } from 'react-hook-form'

import strings from '../locales/localization'
import { useToastContext } from './use-toast-context'

export const useFormToasts = <T extends Record<string, any>>(formState: FormState<T>): void => {
export const useFormToasts = <T extends FieldValues>(formState: FormState<T>): void => {
const { errors } = formState

const errorKey = useRef('')
Expand Down