-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: jsx-curly-newline and comments #3584
Comments
if you removed the comment delimiters, what would happen? |
I am unable to recreate this error with your example. @josemigallas, were you able to resolve this issue? |
Closing, but will reopen if it can be reproduced. |
Apologies, I lost track of this issue but I have not been able to fix it yet.
Like this? { <FormGroup
helperTextInvalid={helperText}
inputProps={inputProps}
type="password"
/> } The error doesn't show up, but others do:
It also doesn't show with one line comments like: {/* <FormGroup ... */} |
@josemigallas thanks for responding! |
"react/jsx-curly-newline": ["error", { "multiline": "forbid", "singleline": "forbid" }], I also added it to the issue's description. |
Is there an existing issue for this?
Description Overview
jsx-curly-newline
reports an error when using multiline comments in JSX.$ eslint --ext .js,.jsx,.ts,.tsx .
Expected Behavior
I would expect no error.
Rule options
eslint-plugin-react version
7.32.2
eslint version
7.32.0
node version
14.21.3
The text was updated successfully, but these errors were encountered: