Skip to content

Tag: prettier

Prettier adding semicolon when semi: false

I have a react component with this jsx When I save the file prettier automatically adds a semicolon infront of <Post … />. This is causing the component to fail to render. I have the semi option set to false. Answer This is happening because currently your map function is not returning anything &l…