Skip to content

Commit 2d251e6

Browse files
committed
[eslint] enable and auto + manually fix implicit-arrow-linebreak
1 parent 9841e97 commit 2d251e6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"no-continue": 1,
4040
"global-require": 1,
4141
"no-restricted-syntax": 1,
42-
"implicit-arrow-linebreak": 1,
4342
"valid-jsdoc": 1,
4443
},
4544
"overrides": [

lib/rules/jsx-sort-props.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,9 @@ const generateFixerFunction = (node, context, reservedList) => {
121121
const options = {ignoreCase, callbacksLast, shorthandFirst, shorthandLast,
122122
noSortAlphabetically, reservedFirst, reservedList};
123123
const sortableAttributeGroups = getGroupsOfSortableAttributes(attributes);
124-
const sortedAttributeGroups = sortableAttributeGroups.slice(0).map(group =>
125-
group.slice(0).sort((a, b) =>
126-
contextCompare(a, b, options)
127-
)
128-
);
124+
const sortedAttributeGroups = sortableAttributeGroups
125+
.slice(0)
126+
.map(group => group.slice(0).sort((a, b) => contextCompare(a, b, options)));
129127

130128
return function (fixer) {
131129
const fixers = [];

0 commit comments

Comments
 (0)