Skip to content

Commit b563319

Browse files
gschierclaude
andcommitted
Fix biome lint: update schema to 2.3.13, exclude npm dir, fix lint errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3d577dd commit b563319

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

biome.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
33
"linter": {
44
"enabled": true,
55
"rules": {
@@ -48,7 +48,8 @@
4848
"!src-web/routeTree.gen.ts",
4949
"!packages/plugin-runtime-types/lib",
5050
"!**/bindings",
51-
"!flatpak"
51+
"!flatpak",
52+
"!npm"
5253
]
5354
}
5455
}

src-web/components/Settings/SettingsLicense.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { Link } from '../core/Link';
1313
import { PlainInput } from '../core/PlainInput';
1414
import { Separator } from '../core/Separator';
1515
import { HStack, VStack } from '../core/Stacks';
16-
import { LocalImage } from '../LocalImage';
1716

1817
export function SettingsLicense() {
1918
return (

src-web/components/core/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useMemo } from 'react';
55
import { Overlay } from '../Overlay';
66
import { Heading } from './Heading';
77
import { IconButton } from './IconButton';
8-
import { DialogSize } from '@yaakapp-internal/plugins';
8+
import type { DialogSize } from '@yaakapp-internal/plugins';
99

1010
export interface DialogProps {
1111
children: ReactNode;

src-web/components/core/Editor/Editor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ function EditorInner({
327327
);
328328

329329
// Update the language extension when the language changes
330+
// biome-ignore lint/correctness/useExhaustiveDependencies: intentionally limited deps
330331
useEffect(() => {
331332
if (cm.current === null) return;
332333
const { view, languageCompartment } = cm.current;
@@ -360,6 +361,7 @@ function EditorInner({
360361
]);
361362

362363
// Initialize the editor when ref mounts
364+
// biome-ignore lint/correctness/useExhaustiveDependencies: only reinitialize when necessary
363365
const initEditorRef = useCallback(
364366
function initEditorRef(container: HTMLDivElement | null) {
365367
if (container === null) {

src-web/components/git/GitCommitDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCachedNode } from '@dnd-kit/core/dist/hooks/utilities';
1+
22
import type { GitStatusEntry } from '@yaakapp-internal/git';
33
import { useGit } from '@yaakapp-internal/git';
44
import type {
@@ -12,7 +12,6 @@ import type {
1212
import classNames from 'classnames';
1313
import { useCallback, useMemo, useState } from 'react';
1414
import { modelToYaml } from '../../lib/diffYaml';
15-
import { isSubEnvironment } from '../../lib/model_util';
1615
import { resolvedModelName } from '../../lib/resolvedModelName';
1716
import { showErrorToast } from '../../lib/toast';
1817
import { Banner } from '../core/Banner';

src-web/components/git/GitDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function SyncDropdownWithSyncDir({ syncDir }: { syncDir: string }) {
7575

7676
const currentBranch = status.data.headRefShorthand;
7777
const hasChanges = status.data.entries.some((e) => e.status !== 'current');
78-
const hasRemotes = (status.data.origins ?? []).length > 0;
78+
const _hasRemotes = (status.data.origins ?? []).length > 0;
7979
const { ahead, behind } = status.data;
8080

8181
const tryCheckout = (branch: string, force: boolean) => {

src-web/lib/theme/window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function bannerColorVariables(color: YaakColor | null): Partial<CSSVariables> {
138138
};
139139
}
140140

141-
function inputCSS(color: YaakColor | null): Partial<CSSVariables> {
141+
function _inputCSS(color: YaakColor | null): Partial<CSSVariables> {
142142
if (color == null) return {};
143143

144144
const theme: Partial<ThemeComponentColors> = {

0 commit comments

Comments
 (0)