eslint-plugin-jsx-no-inline-comment-textnodes
v1.0.2
Published
eslint plugin to disallow inline comments in JSX text nodes(with eslint --fix support)
Downloads
6
Maintainers
Readme
Disallow inline comments from being inserted as text nodes
function Hello() {
return <div>// empty div</div>;
}
Includes a fix to change the above to
function Hello() {
return <div>{/* empty div */}</div>;
}
Only supports inline comments not multiline.