-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
'jsx-newline' add ignore options #2926
Comments
I'd say an |
is this not added to the plugin yet? we have a similar problem in our repo, and looking for a fix 👀 |
@Sreejit7 the tests pass, so it should already be fixed. If you're fully updated and still seeing problems, please file a new issue. |
@ljharb was ignore comments added to options? If so, it's not documented: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-newline.md#rule-options |
@jacob-orbiit looks like it's not. want to make a PR to document it? |
Actually, I just tried to use it, and eslint throws that it's not recognised. (Otherwise, sure, happy to put together a PR to update the docs) |
@jacob-orbiit ahhh no, we didn't end up adding the option, because it wasn't needed - we just fixed the detection. |
I have the
jsx-newline
rule turned on, but it causes problems with any{/* eslint-disable-next-line <rulename> */}
comments in my code.If I have the following:
jsx-newline
marks the<Button ...>
line as needing a newline before, causing theignore-next-line
comment to stop working.Would it be possible to add options to the
jsx-newline
rule, to allow ignoring?e.g.
The text was updated successfully, but these errors were encountered: