Skip to content

react/jsx-indent: Closing parenthese indentation #618

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

Closed
stefanbuck opened this issue Jun 2, 2016 · 4 comments · Fixed by #620
Closed

react/jsx-indent: Closing parenthese indentation #618

stefanbuck opened this issue Jun 2, 2016 · 4 comments · Fixed by #620

Comments

@stefanbuck
Copy link

The indentation of the closing parentheses on return statements seems to be not working.

The following patterns are considered warnings:

return (
  <div />
  );
return (
  <div />);

The following patterns are not considered warnings:

return (
  <div />
);
return (<div />);
@ljharb
Copy link
Member

ljharb commented Jun 2, 2016

The examples you've mentioned are exactly how it should be working. Is it working differently?

@stefanbuck
Copy link
Author

Mhhh, good to know. So it must be a configuration issue, right? I tried to find the conflicting rule without success. Would it be possible that you take a look?

https://github.com/stefanbuck/eslint-plugin-react-issues-618

@ljharb
Copy link
Member

ljharb commented Jun 3, 2016

@stefanbuck thanks for the repro repo! It definitely looks like a bug.

@stefanbuck
Copy link
Author

Is jsxp-indent.js the right place to fix it? I'll try to come up with a PR for this.

stefanbuck pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Jun 3, 2016
stefanbuck pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Jun 3, 2016
stefanbuck pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Jun 4, 2016
stefanbuck pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Jul 28, 2016
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Dec 28, 2018
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Dec 13, 2019
stefanbuck pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Dec 16, 2019
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Dec 27, 2019
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue May 9, 2020
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue May 13, 2020
ljharb pushed a commit to stefanbuck/eslint-plugin-react that referenced this issue Oct 15, 2020
@ljharb ljharb closed this as completed in c9b7294 Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants