Adding an ignore rule to linting
I use the Emotion library for react which makes the following code valid:
className={css`${cell_style} ${small_headers}`};
In Phpstorm a red error mark is shown.
Is there a way to add a rule to ignore a space within a string template, within a className attribute?
Please sign in to leave a comment.
can't see any syntax errors on similar statements - Phpstorm treats
as a styled component. Please can you provide full code snippet that shows up the issue plus a screenshot of the error?
as for ignoring certain parts of code when parsing, no, this can't be done