Skip to content

Commit 55c3186

Browse files
committed
biome
Signed-off-by: Adam Setch <[email protected]>
1 parent 4477358 commit 55c3186

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

biome.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"rules": {
3434
"recommended": true,
3535
"suspicious": {
36-
"noConsole": "error"
36+
"noConsole": "error",
37+
"noUnknownAtRules": "warn"
3738
},
3839
"style": {
3940
"useDefaultSwitchClause": "error",
@@ -59,9 +60,7 @@
5960
"options": {
6061
"hooks": [{ "name": "useNavigate", "stableResult": true }]
6162
}
62-
}
63-
},
64-
"nursery": {
63+
},
6564
"useUniqueElementIds": "warn"
6665
}
6766
}

src/renderer/__mocks__/electron.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const { namespacedEvent } = require('../../shared/events');
22

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

@@ -9,7 +8,6 @@ window.Notification = function (title) {
98
};
109
};
1110

12-
// @ts-ignore
1311
window.Audio = class Audio {
1412
constructor(path) {
1513
this.path = path;
@@ -18,7 +16,6 @@ window.Audio = class Audio {
1816
play() {}
1917
};
2018

21-
// @ts-ignore
2219
window.localStorage = {
2320
store: {},
2421
getItem: function (key) {

src/renderer/hooks/useInterval.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect, useRef } from 'react';
22

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

77
// Remember the latest callback.
@@ -12,7 +12,6 @@ export const useInterval = (callback, delay) => {
1212
// Set up the interval.
1313
useEffect(() => {
1414
function tick() {
15-
// @ts-ignore
1615
savedCallback.current();
1716
}
1817

0 commit comments

Comments
 (0)