Skip to content

Add lint Github workflow #1

Add lint Github workflow

Add lint Github workflow #1

Triggered via pull request September 24, 2023 04:15
Status Failure
Total duration 59s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
Lint
Process completed with exit code 1.
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint: src/contexts/WalletContext.tsx#L8
'useAccount' is defined but never used
Lint: src/contexts/WalletContext.tsx#L65
React Hook useEffect has missing dependencies: 'disconnect', 'setClient', 'setWaitingForSignatures', and 'signer'. Either include them or remove the dependency array. If 'setWaitingForSignatures' changes too often, find the parent component that defines it and wrap that definition in useCallback
Lint: src/contexts/WalletContext.tsx#L65
React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked
Lint: src/hooks/useAttachment.tsx#L6
Forbidden non-null assertion
Lint: src/hooks/useConversations.tsx#L32
React Hook useEffect has a missing dependency: 'client'. Either include it or remove the dependency array
Lint: src/hooks/useConversations.tsx#L42
React Hook useEffect has a missing dependency: 'client'. Either include it or remove the dependency array
Lint: src/main.tsx#L14
Unexpected any. Specify a different type
Lint: src/model/conversations.ts#L2
'useLiveQuery' is defined but never used
Lint: src/model/conversations.ts#L3
'useEffect' is defined but never used
Lint: src/model/conversations.ts#L7
'saveMessage' is defined but never used