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
8 changes: 7 additions & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
{
"name": "playwright",
"specifier": "eslint-plugin-playwright"
},
{
"name": "react-hook-form",
"specifier": "eslint-plugin-react-hook-form"
}
// eslint-plugin-react-hook-form won't work — all its rules use context.getScope()
],
"plugins": [
"import",
Expand Down Expand Up @@ -38,6 +41,9 @@

"react-hooks/exhaustive-deps": ["error", { "additionalHooks": "useQuickActions" }],
"react-hooks/rules-of-hooks": "error",
"react-hook-form/destructuring-formstate": "error",
// no-access-control uses context.getScope() which oxlint doesn't support
"react-hook-form/no-nested-object-setvalue": "error",
"import/no-default-export": "error",
"consistent-type-imports": "error",

Expand Down
2 changes: 1 addition & 1 deletion app/ui/lib/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ type Props = {
/** Loading spinner that shows for a minimum of `minTime` */
export const SpinnerLoader = ({ isLoading, children = null, minTime = 500 }: Props) => {
const [isVisible, setIsVisible] = useState(isLoading)
const hideTimeout = useRef<NodeJS.Timeout | null>(null)
const hideTimeout = useRef<ReturnType<typeof setTimeout> | null>(null)
const loadingStartTime = useRef<number>(0)

useEffect(() => {
Expand Down
Loading
Loading