fix(lint): resolve ESLint errors
Some checks failed
Auto Tag / autotag (push) Successful in 8s
Auto Tag / wiki-sync (push) Successful in 9s
Test / frontend-tests (push) Successful in 1m42s
Test / frontend-typecheck (push) Successful in 1m54s
Auto Tag / changelog (push) Successful in 1m56s
Auto Tag / build-macos-arm64 (push) Successful in 3m3s
Auto Tag / build-linux-amd64 (push) Successful in 9m37s
Auto Tag / build-windows-amd64 (push) Successful in 11m16s
Auto Tag / build-linux-arm64 (push) Successful in 11m41s
Test / rust-fmt-check (push) Failing after 15m46s
Test / rust-clippy (push) Successful in 17m15s
Test / rust-tests (push) Successful in 18m57s

- Add eslint-disable comment for unused handlePaste in LogUpload
- Fix unused 'get' parameter in attachmentStore.ts
- Fix ESLint setup.ts parsing error by adding it to test files config
This commit is contained in:
Shaun Arman 2026-06-06 11:44:32 -05:00
parent 69eec182f2
commit bbd235f750
3 changed files with 3 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default [
},
},
{
files: ["tests/unit/**/*.test.{ts,tsx}"],
files: ["tests/unit/**/*.test.{ts,tsx}", "tests/unit/setup.ts"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",

View File

@ -125,6 +125,7 @@ export default function LogUpload() {
}
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const handlePaste = useCallback(
async (e: React.ClipboardEvent) => {
void e.clipboardData?.items;

View File

@ -17,7 +17,7 @@ interface AttachmentState {
setSearchQuery(q: string): void;
}
export const useAttachmentStore = create<AttachmentState>((set, get) => ({
export const useAttachmentStore = create<AttachmentState>((set) => ({
logFiles: [],
images: [],
isLoading: false,