Skip to content
Advertisement

Inline eslint comment in JSX

I’m getting an error (eslint): Line 199 exceeds maximum line length of 120. (max-len)

Why doesn’t this inline comment work?

JavaScript

Advertisement

Answer

eslint-disable-line and eslint-disable-next-line are only in inline comments.

There is currently an open issue for this in eslint

So you would have to write it as the following:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement