Skip to content

Commit c990a8b

Browse files
committed
👕 Fix new lints
1 parent 81a3ad1 commit c990a8b

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

example/src/GenericListExample.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ class GenericListExample extends Component {
144144

145145
render() {
146146
const { listA, listB } = this.state;
147-
const { ListComponent, extraPropsA, extraPropsB, listComponentProps } = this.props;
147+
const {
148+
ListComponent, extraPropsA, extraPropsB, listComponentProps,
149+
} = this.props;
148150

149151
const emptyTextA = listA.isLoading ? 'Loading...' : listA.errorMsg;
150152
const emptyTextB = listB.isLoading ? 'Loading...' : listB.errorMsg;

src/ImmutableListView/EmptyListView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ class EmptyListView extends PureComponent {
7171

7272
render() {
7373
const { listData } = this.state;
74-
const { renderEmpty, renderEmptyInList, renderSectionHeader, ...passThroughProps } = this.props;
74+
const {
75+
renderEmpty, renderEmptyInList, renderSectionHeader, ...passThroughProps
76+
} = this.props;
7577

7678
return (
7779
<ImmutableListView

src/ImmutableListView/ImmutableListView.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ class ImmutableListView extends PureComponent {
144144

145145
const updatedDataSource = (renderSectionHeader
146146
? dataSource.cloneWithRowsAndSections(
147-
displayData, utils.getKeys(displayData), utils.getRowIdentities(displayData))
147+
displayData, utils.getKeys(displayData), utils.getRowIdentities(displayData),
148+
)
148149
: dataSource.cloneWithRows(
149-
displayData, utils.getKeys(displayData)));
150+
displayData, utils.getKeys(displayData),
151+
));
150152

151153
this.setState({
152154
dataSource: updatedDataSource,
@@ -168,7 +170,9 @@ class ImmutableListView extends PureComponent {
168170
this.listViewRef && this.listViewRef.scrollToEnd(...args);
169171

170172
renderEmpty() {
171-
const { immutableData, enableEmptySections, renderEmpty, renderEmptyInList, contentContainerStyle } = this.props;
173+
const {
174+
immutableData, enableEmptySections, renderEmpty, renderEmptyInList, contentContainerStyle,
175+
} = this.props;
172176

173177
const shouldTryToRenderEmpty = renderEmpty || renderEmptyInList;
174178
if (shouldTryToRenderEmpty && utils.isEmptyListView(immutableData, enableEmptySections)) {

src/ImmutableVirtualizedList/ImmutableVirtualizedList.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ class ImmutableVirtualizedList extends PureComponent {
8282
this.virtualizedListRef && this.virtualizedListRef.recordInteraction(...args);
8383

8484
renderEmpty() {
85-
const { immutableData, renderEmpty, renderEmptyInList, contentContainerStyle } = this.props;
85+
const {
86+
immutableData, renderEmpty, renderEmptyInList, contentContainerStyle,
87+
} = this.props;
8688

8789
const shouldTryToRenderEmpty = renderEmpty || renderEmptyInList;
8890
if (shouldTryToRenderEmpty && utils.isEmptyListView(immutableData)) {

0 commit comments

Comments
 (0)