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
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:
parent
69eec182f2
commit
bbd235f750
@ -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",
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user