New Gov Actions #48
Annotations
21 errors and 6 warnings
type_check
'inProgress' is declared but its value is never read.
|
type_check
'isActive' is declared but its value is never read.
|
type_check
'details' is declared but its value is never read.
|
type_check
'url' is declared but its value is never read.
|
type_check
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
type_check
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
type_check
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
type_check
Type '{ createdDate: string; expiryDate: string; type: string; txHash: string; index: number; onClick: Mock<void, []>; }' is not assignable to type 'Partial<{ onClick?: (() => void) | undefined; inProgress?: boolean | undefined; txHash: string; index: number; isDataMissing: boolean; type: string; expiryDate: string; createdDate: string; }> & { ...; }'.
|
type_check
Object literal may only specify known properties, and 'shortenedGovActionId' does not exist in type 'Partial<{ abstainVotes: number; createdDate: string; details: unknown; expiryDate: string; noVotes: number; type: string; url: string; yesVotes: number; govActionId: string; isDashboard?: boolean | undefined; isVoter?: boolean | undefined; voteFromEP?: string | undefined; isInProgress?: boolean | undefined; }> & { ....'.
|
type_check
Type '{ votedProposal: { proposal: { createdDate: string; expiryDate: string; id: string; type: string; index: number; txHash: string; details: string; url: string; metadataHash: string; yesVotes: number; noVotes: number; abstainVotes: number; }; vote: { ...; }; }; }' is not assignable to type 'Partial<{ votedProposal: VotedProposal; isDataMissing: boolean; searchPhrase?: string | undefined; inProgress?: boolean | undefined; }> & { votedProposal: VotedProposal; isDataMissing: boolean; searchPhrase?: string | undefined; inProgress?: boolean | undefined; }'.
|
lint:
govtool/frontend/src/components/atoms/Radio.tsx#L45
Curly braces are unnecessary here
|
lint:
govtool/frontend/src/components/atoms/Radio.tsx#L57
Curly braces are unnecessary here
|
lint:
govtool/frontend/src/components/atoms/SliderArrow.tsx#L8
Unexpected any. Specify a different type
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionCard.tsx#L44
'inProgress' is assigned a value but never used
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionCardElement.tsx#L36
Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionCardHeader.tsx#L46
Curly braces are unnecessary here
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionCardHeader.tsx#L48
Curly braces are unnecessary here
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionCardMyVote.tsx#L12
Curly braces are unnecessary here
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionDetailsCardLinks.tsx#L42
Do not use Array index in keys
|
lint:
govtool/frontend/src/components/molecules/GovernanceActionDetailsCardOnChainData.tsx#L60
Curly braces are unnecessary here
|
test
Process completed with exit code 134.
|
type_check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
type_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@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
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|