infra: add linting and formatting for js projects (#230)

* wip

* wip

* wip

* format

* wip(mobile): lint and format

* cleanup

* nits

* nits

* idiomatic react

* nit

* format all root files
This commit was merged in pull request #230.
This commit is contained in:
Arjun Patel
2026-06-02 07:44:24 -07:00
committed by GitHub
parent 2fe562ce2b
commit a8a0b7db1b
258 changed files with 7822 additions and 5195 deletions
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useState } from "react";
import type { AutoplayPayload } from "@/lib/autoplay-ipc";
import { AutoplayCardContent } from "@/components/autoplay-card-content";
import { useCallback, useEffect, useState } from 'react';
import type { AutoplayPayload } from '@/lib/autoplay-ipc';
import { AutoplayCardContent } from '@/components/autoplay-card-content';
export function AutoplayApp() {
const [payload, setPayload] = useState<AutoplayPayload | null>(null);
+3 -1
View File
@@ -5,5 +5,7 @@ import '@/styles/globals.css';
initSentryRenderer();
const root = createRoot(document.getElementById('root')!);
const container = document.getElementById('root');
if (!container) throw new Error('Root element #root not found');
const root = createRoot(container);
root.render(<AutoplayApp />);