Skip to content

Commit b7f533b

Browse files
committed
Fix JS linting
1 parent 173682d commit b7f533b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ check = [
192192
'bun run --cwd "src/js/packages/@reactpy/app" checkTypes',
193193
]
194194
fix = ['bun install --cwd "src/js"', 'bun run --cwd "src/js" format']
195-
test = ['hatch run javascript:build_event_to_object', 'bun test']
195+
test = ['hatch run javascript:build_event_to_object --dev', 'bun test']
196196
build = [
197197
'hatch run "src/build_scripts/clean_js_dir.py"',
198198
'bun install --cwd "src/js"',

src/js/packages/@reactpy/client/src/bind.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function infer_bind_from_environment() {
1111
"ReactPy detected 'ReactJS' to bind your JavaScript components.",
1212
);
1313
return (node: HTMLElement) => reactjs_bind(node, React, ReactDOM);
14-
} catch (e) {
14+
} catch {
1515
console.debug(
1616
"ReactPy did not detect a component binding function or a suitable 'importmap'. Using ReactPy's internal framework (Preact) to bind your JavaScript components.",
1717
);

0 commit comments

Comments
 (0)