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
35 changes: 17 additions & 18 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
"assist": {
"actions": {
"source": {
Expand Down Expand Up @@ -32,8 +32,19 @@
},
"rules": {
"recommended": true,
"suspicious": {
"noConsole": "error"
"a11y": {
"useKeyWithClickEvents": "off",
"useSemanticElements": "off"
},
"correctness": {
"noUnusedFunctionParameters": "error",
"useExhaustiveDependencies": {
"level": "warn",
"options": {
"hooks": [{ "name": "useNavigate", "stableResult": true }]
}
},
"useUniqueElementIds": "warn"
},
"style": {
"useDefaultSwitchClause": "error",
Expand All @@ -48,21 +59,9 @@
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"a11y": {
"useKeyWithClickEvents": "off",
"useSemanticElements": "off"
},
"correctness": {
"noUnusedFunctionParameters": "error",
"useExhaustiveDependencies": {
"level": "warn",
"options": {
"hooks": [{ "name": "useNavigate", "stableResult": true }]
}
}
},
"nursery": {
"useUniqueElementIds": "warn"
"suspicious": {
"noConsole": "error",
"noUnknownAtRules": "warn"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"update-electron-app": "3.1.1"
},
"devDependencies": {
"@biomejs/biome": "2.1.4",
"@biomejs/biome": "2.2.0",
"@discordapp/twemoji": "16.0.1",
"@electron/notarize": "3.0.2",
"@primer/octicons-react": "19.15.5",
Expand Down
76 changes: 38 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/renderer/__mocks__/electron.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { namespacedEvent } = require('../../shared/events');

// @ts-ignore
window.Notification = function (title) {
this.title = title;

Expand All @@ -9,7 +8,6 @@ window.Notification = function (title) {
};
};

// @ts-ignore
window.Audio = class Audio {
constructor(path) {
this.path = path;
Expand All @@ -18,7 +16,6 @@ window.Audio = class Audio {
play() {}
};

// @ts-ignore
window.localStorage = {
store: {},
getItem: function (key) {
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/hooks/useInterval.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef } from 'react';

// Thanks to https://overreacted.io/making-setinterval-declarative-with-react-hooks/
export const useInterval = (callback, delay) => {
export const useInterval = (callback, delay: number) => {
const savedCallback = useRef(null);

// Remember the latest callback.
Expand All @@ -12,7 +12,6 @@ export const useInterval = (callback, delay) => {
// Set up the interval.
useEffect(() => {
function tick() {
// @ts-ignore
savedCallback.current();
}

Expand Down
Loading