From 221164484f7e09604e644a23e2d8809dc75b9cae Mon Sep 17 00:00:00 2001 From: Josh McCullough Date: Thu, 31 Jan 2019 12:08:31 -0500 Subject: [PATCH] cleanup all but one linting issue (#1232) --- src/index.js | 5 +++-- src/methods.js | 4 ++-- src/propTypes.js | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 8905390..1168948 100644 --- a/src/index.js +++ b/src/index.js @@ -666,8 +666,9 @@ export default class ReactTable extends Methods(Lifecycle(Component)) { isExpanded && rowInfo.subRows.map((d, i) => makePageRow(d, i, rowInfo.nestingPath))} {SubComponent && !rowInfo.subRows && isExpanded && SubComponent(rowInfo, () => { - let newExpanded = _.clone(expanded) - newExpanded = _.set(newExpanded, cellInfo.nestingPath, false) + const newExpanded = _.clone(expanded) + + _.set(newExpanded, cellInfo.nestingPath, false) })} ) diff --git a/src/methods.js b/src/methods.js index 2ca0755..3e4144b 100644 --- a/src/methods.js +++ b/src/methods.js @@ -618,8 +618,8 @@ export default Base => event.stopPropagation() const { onResizedChange, column } = this.props const { resized, currentlyResizing, columns } = this.getResolvedState() - const currentColumn = columns.find(c => c.accessor === currentlyResizing.id); - const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth; + const currentColumn = columns.find(c => c.accessor === currentlyResizing.id) + const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth // Delete old value const newResized = resized.filter(x => x.id !== currentlyResizing.id) diff --git a/src/propTypes.js b/src/propTypes.js index fa6649a..fdfc772 100644 --- a/src/propTypes.js +++ b/src/propTypes.js @@ -118,7 +118,7 @@ export default { getFooterProps: PropTypes.func, filterMethod: PropTypes.func, filterAll: PropTypes.bool, - sortMethod: PropTypes.func + sortMethod: PropTypes.func, }) ), @@ -127,7 +127,7 @@ export default { sortable: PropTypes.bool, resizable: PropTypes.bool, filterable: PropTypes.bool, - width: PropTypes.number + width: PropTypes.number, }), pivotDefaults: PropTypes.object, @@ -165,5 +165,5 @@ export default { LoadingComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), NoDataComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), ResizerComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), - PadRowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]) + PadRowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.element]), }