Skip to content

Commit 73b746c

Browse files
authored
chore: automatic fixes from the linter (#2074)
## Summary I'm tired of seeing automatic lint fixes so I ran `make dev-lint`
1 parent 52986a9 commit 73b746c

10 files changed

Lines changed: 6 additions & 12 deletions

File tree

packages/app/src/DBChartPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ function AIAssistant({
166166
</Group>
167167
<Collapse in={opened}>
168168
{opened && (
169-
// eslint-disable-next-line react-hooks/refs
170169
<form onSubmit={handleSubmit(onSubmit)}>
171170
<Group mb="md">
172171
<SourceSelectControlled

packages/app/src/DOMPlayer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ export default function DOMPlayer({
264264
);
265265
}
266266

267-
// eslint-disable-next-line react-hooks/immutability
268267
updatePlayerTimeRafRef.current = requestAnimationFrame(updatePlayerTime);
269268
}, []);
270269

packages/app/src/components/DBHeatmapChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ function Heatmap({
953953
},
954954
plugins: [
955955
// legendAsTooltipPlugin()
956-
// eslint-disable-next-line react-hooks/refs -- mouseInsideRef is read at event time, not during render
956+
957957
highlightDataPlugin({
958958
proximity: 20,
959959
yFormatter: tickFormatter,

packages/app/src/components/SQLEditor/SQLEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function SQLEditor({
9898
minHeight={'100px'}
9999
extensions={[
100100
createCodeMirrorStyleTheme(),
101-
// eslint-disable-next-line react-hooks/refs
101+
102102
compartmentRef.current.of(
103103
clickhouseSql({
104104
upperCaseKeywords: true,

packages/app/src/components/SQLEditor/SQLInlineEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ export default function SQLInlineEditor({
242242
// Enable line wrapping when multiline is allowed (regardless of focus)
243243
...(allowMultiline ? [EditorView.lineWrapping] : []),
244244

245-
// eslint-disable-next-line react-hooks/refs
246245
compartmentRef.current.of(
247246
clickhouseSql({
248247
upperCaseKeywords: true,

packages/app/src/hooks/useResizable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function useResizable(
5252

5353
const endResize = useCallback(() => {
5454
document.removeEventListener('mousemove', handleResize);
55-
// eslint-disable-next-line react-hooks/immutability
55+
5656
document.removeEventListener('mouseup', endResize);
5757
}, [handleResize]);
5858

packages/app/src/hooks/useStableCallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const useStableCallback = <T extends (...args: any[]) => any>(
1010
});
1111

1212
return useCallback(
13-
// eslint-disable-next-line react-hooks/use-memo, @typescript-eslint/no-unsafe-type-assertion
13+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
1414
((...args: Parameters<T>) => callbackRef.current(...args)) as T,
1515
[],
1616
);

packages/app/src/timeQuery.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,12 @@ export function useTimeQuery({
243243
liveTailTimeRange == null &&
244244
tempLiveTailTimeRange == null &&
245245
!isInputTimeQueryLive(inputTimeQuery) &&
246-
// eslint-disable-next-line react-hooks/refs
247246
inputTimeQueryDerivedTimeQueryRef.current != null
248247
) {
249248
// Use the input time query, allows users to specify relative time ranges
250249
// via url ex. /logs?tq=Last+30+minutes
251250
// return inputTimeQueryDerivedTimeQuery as [Date, Date];
252-
// eslint-disable-next-line react-hooks/refs
251+
253252
return inputTimeQueryDerivedTimeQueryRef.current;
254253
} else if (
255254
isReady &&
@@ -345,7 +344,6 @@ export function useTimeQuery({
345344
],
346345
);
347346

348-
// eslint-disable-next-line react-hooks/refs
349347
return {
350348
isReady, // Don't search until we know what we want to do
351349
isLive,

packages/app/src/useQueryParam.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const QueryParamProvider = ({
2828

2929
const setState = useCallback(
3030
(state: Record<string, any>) => {
31-
// eslint-disable-next-line react-hooks/immutability
3231
setCache(oldCache => {
3332
const newCache = {
3433
...oldCache,

packages/app/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ export const usePrevious = <T>(value: T): T | undefined => {
643643
useEffect(() => {
644644
ref.current = value;
645645
});
646-
// eslint-disable-next-line react-hooks/refs
646+
647647
return ref.current;
648648
};
649649

0 commit comments

Comments
 (0)