eslint: scream if I try putting a JS comment in a JSX text node
This commit is contained in:
parent
75fc0bf904
commit
f316dac83e
|
@ -141,6 +141,7 @@ module.exports = {
|
|||
'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
|
||||
'react/jsx-indent': ['error', 2],
|
||||
// 'react/jsx-no-bind': ['error'],
|
||||
'react/jsx-no-comment-textnodes': 'error',
|
||||
'react/jsx-no-duplicate-props': 'error',
|
||||
'react/jsx-no-undef': 'error',
|
||||
'react/jsx-tag-spacing': 'error',
|
||||
|
|
|
@ -30,7 +30,7 @@ const SvgIcon: React.FC<ISvgIcon> = ({ src, alt, size = 24, className }): JSX.El
|
|||
loader={loader}
|
||||
data-testid='svg-icon'
|
||||
>
|
||||
/* If the fetch fails, fall back to displaying the loader */
|
||||
{/* If the fetch fails, fall back to displaying the loader */}
|
||||
{loader}
|
||||
</InlineSVG>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue