Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbach committed May 18, 2024
1 parent 0df6be5 commit 05dd439
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
},
"rules": {
"import/no-extraneous-dependencies": "off",
"no-nested-ternary": "warn",
"no-nested-ternary": "off",
"no-shadow": "off",
"react/no-array-index-key": "off",
"jsx-a11y/label-has-associated-control": "warn"
},
"ignorePatterns": [
Expand Down
1 change: 1 addition & 0 deletions src/renderer/common/date-picker.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
import { FC, PropsWithChildren, useRef } from "react";
import {
DateFieldState,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/details/transcript/transcript-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const TranscriptItem = memo<{
(idx === 0 && index === 0 && time < nextRange[0]),
)
.map(([time, file]) => ({ time, file })),
[meta.screenshots, nextRange],
[index, meta.screenshots, nextRange],
);

const nextItems = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/history/history-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const HistoryItem: FC<{
if (name) {
await historyApi.updateRecordingMeta(id, { name });
}
}, [id]);
}, [id, promptRename, recording.name]);

const duration = humanizer(recording.duration || 0, { maxDecimalPoints: 0 });

Expand Down
1 change: 0 additions & 1 deletion src/renderer/settings/settings-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const SettingsScreen: FC = () => {

const handleSubmit = useDebouncedCallback(
() => {
console.log("SAVE", form.getValues());
mainApi.saveSettings(form.getValues());
setHasSaved((old) => {
if (!old) {
Expand Down

0 comments on commit 05dd439

Please sign in to comment.