-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Description
Good afternoon. I am encountering an incorrect error in PhpStorm. When using HTML inside JS files, I get the following PHPCS error:

"Expected at least 1 space after '<'; 0 found."
When I try to fix it, I get the following result:
return (
< div >
< h1 > Data Table < / h1 >
< table border = "1" >
< thead >
< tr >
< th > < / th >
< th > < / th >
< th > Planned Shipment Date < / th >
< / tr >
< / thead >
< tbody >
{data.map((item) => (
< tr key = {item.id} >
< td > {item.serial_number} < / td >
< td > {new Date(item.deadline).toLocaleString()} < / td >
< td > {item.productionItemPartStages ? .length || 0} < / td >
< / tr >
))}
< / tbody >
< / table >
< / div >
);
Could you please help me resolve this issue?
Metadata
Metadata
Assignees
Labels
No labels