fixed linting errors

This commit is contained in:
kao
2017-05-15 00:15:15 +02:00
parent cdf5c83813
commit 65546a38d5
4 changed files with 22 additions and 21 deletions

View File

@@ -249,8 +249,8 @@ export type GridCoreProps = {
*/
rowHeight: number | ((params: Index) => number);
/**
* Number of rows in grid.
*/
* Number of rows in grid.
*/
rowCount: number;
/** Wait this amount of time after the last scroll event before resetting Grid `pointer-events`. */
scrollingResetTimeInterval?: number;

View File

@@ -289,7 +289,7 @@ export type TableProps = GridCoreProps & {
export const defaultTableCellDataGetter: TableCellDataGetter;
export const defaultTableCellRenderer: TableCellRenderer;
export const defaultTableHeaderRenderer: () => Array<React.ReactElement<TableHeaderProps>>;
export const defaultTableHeaderRenderer: () => React.ReactElement<TableHeaderProps>[];
export const defaultTableHeaderRowRenderer: TableHeaderRowRenderer;
export const defaultTableRowRenderer: TableRowRenderer;

View File

@@ -358,7 +358,7 @@ export class ColumnSizerExample extends PureComponent<any, any> {
render() {
const {
columnMaxWidth,
columnMaxWidth,
columnMinWidth,
columnCount
} = this.state
@@ -486,7 +486,7 @@ export class GridExample extends PureComponent<any, any> {
render() {
const {
columnCount,
columnCount,
height,
overscanColumnCount,
overscanRowCount,
@@ -816,7 +816,7 @@ export class ListExample extends PureComponent<any, any> {
render() {
const {
listHeight,
listHeight,
listRowHeight,
overscanRowCount,
rowCount,
@@ -882,9 +882,9 @@ export class ListExample extends PureComponent<any, any> {
_rowRenderer({ index, isScrolling, key, style }) {
const {
showScrollingPlaceholder,
showScrollingPlaceholder,
useDynamicRowHeight
} = this.state
} = this.state
if (
showScrollingPlaceholder &&
@@ -996,11 +996,11 @@ export class GridExample2 extends PureComponent<any, any> {
render() {
const {
columnWidth,
columnWidth,
height,
gutterSize,
windowScrollerEnabled
} = this.state
} = this.state
let child
@@ -1023,9 +1023,9 @@ export class GridExample2 extends PureComponent<any, any> {
_calculateColumnCount() {
const {
columnWidth,
columnWidth,
gutterSize
} = this.state
} = this.state
this._columnCount = Math.floor(this._width / (columnWidth + gutterSize))
}
@@ -1129,9 +1129,9 @@ export class GridExample2 extends PureComponent<any, any> {
_resetCellPositioner() {
const {
columnWidth,
columnWidth,
gutterSize
} = this.state
} = this.state
this._cellPositioner.reset({
columnCount: this._columnCount,
@@ -1278,14 +1278,14 @@ export class GridExample3 extends PureComponent<any, any> {
render() {
const {
columnCount,
columnCount,
columnWidth,
height,
overscanColumnCount,
overscanRowCount,
rowHeight,
rowCount
} = this.state
} = this.state
return (
@@ -1502,7 +1502,7 @@ export class TableExample extends PureComponent<any, any> {
render() {
const {
disableHeader,
disableHeader,
headerHeight,
height,
hideIndexRow,
@@ -1513,7 +1513,7 @@ export class TableExample extends PureComponent<any, any> {
sortBy,
sortDirection,
useDynamicRowHeight
} = this.state
} = this.state
const { list } = this.context
const sortedList = this._isSortEnabled()
@@ -1596,13 +1596,13 @@ export class TableExample extends PureComponent<any, any> {
}
_headerRenderer({
columnData,
columnData,
dataKey,
disableSort,
label,
sortBy,
sortDirection
}) {
}) {
return (
<div>
Full Name

View File

@@ -7,6 +7,7 @@
],
"prefer-method-signature": false,
"prefer-declare-function": false,
"no-padding": false
"no-padding": false,
"array-type": [true, "array"]
}
}