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>
This commit is contained in:
Gregory Schier
2026-03-05 16:19:05 -08:00
parent 3d577dd7d9
commit b563319bed
7 changed files with 9 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
{ {
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", "$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
"linter": { "linter": {
"enabled": true, "enabled": true,
"rules": { "rules": {
@@ -48,7 +48,8 @@
"!src-web/routeTree.gen.ts", "!src-web/routeTree.gen.ts",
"!packages/plugin-runtime-types/lib", "!packages/plugin-runtime-types/lib",
"!**/bindings", "!**/bindings",
"!flatpak" "!flatpak",
"!npm"
] ]
} }
} }

View File

@@ -13,7 +13,6 @@ import { Link } from '../core/Link';
import { PlainInput } from '../core/PlainInput'; import { PlainInput } from '../core/PlainInput';
import { Separator } from '../core/Separator'; import { Separator } from '../core/Separator';
import { HStack, VStack } from '../core/Stacks'; import { HStack, VStack } from '../core/Stacks';
import { LocalImage } from '../LocalImage';
export function SettingsLicense() { export function SettingsLicense() {
return ( return (

View File

@@ -5,7 +5,7 @@ import { useMemo } from 'react';
import { Overlay } from '../Overlay'; import { Overlay } from '../Overlay';
import { Heading } from './Heading'; import { Heading } from './Heading';
import { IconButton } from './IconButton'; import { IconButton } from './IconButton';
import { DialogSize } from '@yaakapp-internal/plugins'; import type { DialogSize } from '@yaakapp-internal/plugins';
export interface DialogProps { export interface DialogProps {
children: ReactNode; children: ReactNode;

View File

@@ -327,6 +327,7 @@ function EditorInner({
); );
// Update the language extension when the language changes // Update the language extension when the language changes
// biome-ignore lint/correctness/useExhaustiveDependencies: intentionally limited deps
useEffect(() => { useEffect(() => {
if (cm.current === null) return; if (cm.current === null) return;
const { view, languageCompartment } = cm.current; const { view, languageCompartment } = cm.current;
@@ -360,6 +361,7 @@ function EditorInner({
]); ]);
// Initialize the editor when ref mounts // Initialize the editor when ref mounts
// biome-ignore lint/correctness/useExhaustiveDependencies: only reinitialize when necessary
const initEditorRef = useCallback( const initEditorRef = useCallback(
function initEditorRef(container: HTMLDivElement | null) { function initEditorRef(container: HTMLDivElement | null) {
if (container === null) { if (container === null) {

View File

@@ -1,4 +1,4 @@
import { useCachedNode } from '@dnd-kit/core/dist/hooks/utilities';
import type { GitStatusEntry } from '@yaakapp-internal/git'; import type { GitStatusEntry } from '@yaakapp-internal/git';
import { useGit } from '@yaakapp-internal/git'; import { useGit } from '@yaakapp-internal/git';
import type { import type {
@@ -12,7 +12,6 @@ import type {
import classNames from 'classnames'; import classNames from 'classnames';
import { useCallback, useMemo, useState } from 'react'; import { useCallback, useMemo, useState } from 'react';
import { modelToYaml } from '../../lib/diffYaml'; import { modelToYaml } from '../../lib/diffYaml';
import { isSubEnvironment } from '../../lib/model_util';
import { resolvedModelName } from '../../lib/resolvedModelName'; import { resolvedModelName } from '../../lib/resolvedModelName';
import { showErrorToast } from '../../lib/toast'; import { showErrorToast } from '../../lib/toast';
import { Banner } from '../core/Banner'; import { Banner } from '../core/Banner';

View File

@@ -75,7 +75,7 @@ function SyncDropdownWithSyncDir({ syncDir }: { syncDir: string }) {
const currentBranch = status.data.headRefShorthand; const currentBranch = status.data.headRefShorthand;
const hasChanges = status.data.entries.some((e) => e.status !== 'current'); const hasChanges = status.data.entries.some((e) => e.status !== 'current');
const hasRemotes = (status.data.origins ?? []).length > 0; const _hasRemotes = (status.data.origins ?? []).length > 0;
const { ahead, behind } = status.data; const { ahead, behind } = status.data;
const tryCheckout = (branch: string, force: boolean) => { const tryCheckout = (branch: string, force: boolean) => {

View File

@@ -138,7 +138,7 @@ function bannerColorVariables(color: YaakColor | null): Partial<CSSVariables> {
}; };
} }
function inputCSS(color: YaakColor | null): Partial<CSSVariables> { function _inputCSS(color: YaakColor | null): Partial<CSSVariables> {
if (color == null) return {}; if (color == null) return {};
const theme: Partial<ThemeComponentColors> = { const theme: Partial<ThemeComponentColors> = {