Skip to content

Commit

Permalink
[eslint] enable and auto + manually fix implicit-arrow-linebreak
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 19, 2019
1 parent 9841e97 commit 2d251e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"no-continue": 1,
"global-require": 1,
"no-restricted-syntax": 1,
"implicit-arrow-linebreak": 1,
"valid-jsdoc": 1,
},
"overrides": [
Expand Down
8 changes: 3 additions & 5 deletions lib/rules/jsx-sort-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,9 @@ const generateFixerFunction = (node, context, reservedList) => {
const options = {ignoreCase, callbacksLast, shorthandFirst, shorthandLast,
noSortAlphabetically, reservedFirst, reservedList};
const sortableAttributeGroups = getGroupsOfSortableAttributes(attributes);
const sortedAttributeGroups = sortableAttributeGroups.slice(0).map(group =>
group.slice(0).sort((a, b) =>
contextCompare(a, b, options)
)
);
const sortedAttributeGroups = sortableAttributeGroups
.slice(0)
.map(group => group.slice(0).sort((a, b) => contextCompare(a, b, options)));

return function (fixer) {
const fixers = [];
Expand Down

0 comments on commit 2d251e6

Please sign in to comment.