I have created a component for rendering an image with some styles and while trying to commit changes I keep getting below errors in the console. Could you please check and advise why?
This is supposed to be reusable component with props for src and alt and some simple styles, so this is why there is no actual image import yet and I am trying to commit this as a sample for future references.
import * as Styled from "./Image.styled"
const Image = ({src, alt}) => (
<Styled.Image>
<img src={src} alt={alt} />
</Styled.Image>
)
export default Image
import styled from "@emotion/styled"
export const Image = styled.div`
display: inline block;
float: left;
width: 100%;
`
Errors that I am getting:
3:17 error Replace `src,·alt` with `·src,·alt·` prettier/prettier
3:17 error 'src' is missing in props validation react/prop-types
3:22 error 'alt' is missing in props validation react/prop-types
4:1 error Replace `····` with `··` prettier/prettier
5:1 error Delete `··` prettier/prettier
9:21 error Insert `⏎` prettier/prettier
Could you please advise ?