Skip to content

Commit

Permalink
fix: disable react/jsx-closing-tag-location
Browse files Browse the repository at this point in the history
It messes up indentation of return statements, e.g.

const failingTestElements = failingTests.map((registeredTest) => {
  return <li key={registeredTest.id}>
    {registeredTest.description}
  </li>;
});

becomes:

const failingTestElements = failingTests.map((registeredTest) => {
  return <li key={registeredTest.id}>
    {registeredTest.description}
         </li>;
});

which causes other style errors.
  • Loading branch information
gajus committed Jun 22, 2018
1 parent dc983b3 commit 2e44589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configurations/react.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
],
"react/prop-types": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-closing-tag-location": 2,
"react/jsx-closing-tag-location": 0,
"react/no-redundant-should-component-update": 2,
"react/require-default-props": 2,
"react/require-render-return": 2,
Expand Down

0 comments on commit 2e44589

Please sign in to comment.