Skip to content

Commit 96434b1

Browse files
chore(deps): update @biomejs/biome to v2.2.0 (#2145)
* chore(deps): update @biomejs/biome to v2.2.0 * chore(deps): update @biomejs/biome to v2.2.0 * biome Signed-off-by: Adam Setch <[email protected]> * biome Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam Setch <[email protected]>
1 parent 246bc23 commit 96434b1

File tree

5 files changed

+57
-62
lines changed

5 files changed

+57
-62
lines changed

biome.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
33
"assist": {
44
"actions": {
55
"source": {
@@ -32,8 +32,19 @@
3232
},
3333
"rules": {
3434
"recommended": true,
35-
"suspicious": {
36-
"noConsole": "error"
35+
"a11y": {
36+
"useKeyWithClickEvents": "off",
37+
"useSemanticElements": "off"
38+
},
39+
"correctness": {
40+
"noUnusedFunctionParameters": "error",
41+
"useExhaustiveDependencies": {
42+
"level": "warn",
43+
"options": {
44+
"hooks": [{ "name": "useNavigate", "stableResult": true }]
45+
}
46+
},
47+
"useUniqueElementIds": "warn"
3748
},
3849
"style": {
3950
"useDefaultSwitchClause": "error",
@@ -48,21 +59,9 @@
4859
"noInferrableTypes": "error",
4960
"noUselessElse": "error"
5061
},
51-
"a11y": {
52-
"useKeyWithClickEvents": "off",
53-
"useSemanticElements": "off"
54-
},
55-
"correctness": {
56-
"noUnusedFunctionParameters": "error",
57-
"useExhaustiveDependencies": {
58-
"level": "warn",
59-
"options": {
60-
"hooks": [{ "name": "useNavigate", "stableResult": true }]
61-
}
62-
}
63-
},
64-
"nursery": {
65-
"useUniqueElementIds": "warn"
62+
"suspicious": {
63+
"noConsole": "error",
64+
"noUnknownAtRules": "warn"
6665
}
6766
}
6867
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"update-electron-app": "3.1.1"
7878
},
7979
"devDependencies": {
80-
"@biomejs/biome": "2.1.4",
80+
"@biomejs/biome": "2.2.0",
8181
"@discordapp/twemoji": "16.0.1",
8282
"@electron/notarize": "3.0.2",
8383
"@primer/octicons-react": "19.15.5",

pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)