Merge branch 'bose/2777' into staging #299
Annotations
9 errors and 10 warnings
check-code:
sanityv3/schemas/objects/tabs/tabs.tsx#L15
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/objects/tabs/tabs.tsx#L15
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/objects/tabs/tabs.tsx#L16
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/objects/tabs/tabs.tsx#L17
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/objects/tabs/tabsBackground.tsx#L9
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/objects/tabs/tabsBackground.tsx#L10
Must use destructuring props assignment
|
check-code:
sanityv3/schemas/utils/permissions.ts#L4
React Hook "useCurrentUser" is called in function "userHasRole" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
check-code:
sanityv3/schemas/utils/permissions.ts#L11
React Hook "useCurrentUser" is called in function "userHasDesignerRole" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"
|
check-code
Process completed with exit code 1.
|
check-code:
sanityv3/actions/customDelete/DeleteTranslationAction.tsx#L91
React Hook useCallback has missing dependencies: 'unsetAndDeleteCurrentTranslation' and 'unsetAndDeleteDefaultWithMetaData'. Either include them or remove the dependency array
|
check-code:
sanityv3/schemas/components/CustomDocumentInternationalizationMenu.tsx#L39
React Hook useEffect has a missing dependency: 'enableManageTranslation'. Either include it or remove the dependency array
|
check-code:
sanityv3/schemas/components/SlugInput/index.tsx#L72
Caution: `React` also has a named export `useCallback`. Check if you meant to write `import {useCallback} from 'react'` instead
|
check-code:
sanityv3/schemas/components/SlugInput/utils/paths.ts#L85
Forbidden non-null assertion
|
check-code:
sanityv3/schemas/components/SlugInput/utils/useAsync.ts#L52
React Hook useCallback has a spread element in its dependency array. This means we can't statically verify whether you've passed the correct dependencies
|
check-code:
sanityv3/schemas/objects/ImageWithRichText.tsx#L4
'CompactBlockEditor' is defined but never used. Allowed unused vars must match /^React$/u
|
check-code:
sanityv3/schemas/objects/ImageWithRichText.tsx#L5
'configureTitleBlockContent' is defined but never used. Allowed unused vars must match /^React$/u
|
check-code:
sanityv3/schemas/objects/carouselImage.tsx#L3
'defineField' is defined but never used. Allowed unused vars must match /^React$/u
|
check-code:
sanityv3/schemas/objects/eventDate.tsx#L2
Using exported name 'TimeInput' as identifier for default export
|
check-code:
sanityv3/schemas/objects/imageCarousel.tsx#L8
'singleMode' is defined but never used. Allowed unused vars must match /^React$/u
|