Re:The Code Is the To-Do List
by adamddev1 on Friday May 20, 2022 @01:01AM
(#31443535)
This is a great idea. But I would like my eslint to produce a WARNING, not an ERROR when I have a certain keyword in a comment. Like if I wrote FIXME in a comment I would like it to produce and eslint warning which would let the code compile and reload (in create-react-app let's say) but it wouldn't build in CI because it has a warning. Is there a way to do this with eslint?
[ Parent
| on HN ]
This is exactly what the article describes. Lint ERRORs that block CI but not compilation.
No unfortunately for me using create-react-app an ERROR like this article's config produces blocks compilation as well. I would need it to output a WARNING for compilation to continue but I can't see how to do that with no-warning-comments