fixed the semver note in the header comment (#15522)

* fixed the semver note in the header comment

* changed tslint config

* fixed linting
This commit is contained in:
Kalle Ott
2017-03-30 13:12:51 -07:00
committed by Andy
parent 8f1c970a60
commit 4fd2d7547c
21 changed files with 102 additions and 95 deletions
+1 -1
View File
@@ -1 +1 @@
export * from '../es/ArrowKeyStepper';
export * from '../es/ArrowKeyStepper';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/AutoSizer';
export * from '../es/AutoSizer';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/CellMeasurer';
export * from '../es/CellMeasurer';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/Collection';
export * from '../es/Collection';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/ColumnSizer';
export * from '../es/ColumnSizer';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/Grid';
export * from '../es/Grid';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/InfiniteLoader';
export * from '../es/InfiniteLoader';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/List';
export * from '../es/List';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/Masonry';
export * from '../es/Masonry';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/MultiGrid';
export * from '../es/MultiGrid';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/ScrollSync';
export * from '../es/ScrollSync';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/Table';
export * from '../es/Table';
+1 -1
View File
@@ -1 +1 @@
export * from '../es/WindowScroller';
export * from '../es/WindowScroller';
+5 -5
View File
@@ -19,10 +19,10 @@ export type AutoSizerProps = {
export class AutoSizer extends PureComponent<AutoSizerProps, Dimensions> {
static propTypes: {
/**
* Function responsible for rendering children.
* This function should implement the following signature:
* ({ height, width }) => PropTypes.element
*/
* Function responsible for rendering children.
* This function should implement the following signature:
* ({ height, width }) => PropTypes.element
*/
children: Validator<(props: Dimensions) => React.ReactNode>,
/** Disable dynamic :height property */
@@ -36,7 +36,7 @@ export class AutoSizer extends PureComponent<AutoSizerProps, Dimensions> {
};
static defaultProps: {
onResize: () => { }
onResize: () => {}
};
constructor(props: AutoSizerProps);
+9 -9
View File
@@ -75,16 +75,16 @@ export type CellSizeAndPositionManager = {
offset // safe
}: ContainerSizeAndOffset): number;
/**
* This method returns the size and position for the cell at the specified index.
* It just-in-time calculates (or used cached values) for cells leading up to the index.
*/
* This method returns the size and position for the cell at the specified index.
* It just-in-time calculates (or used cached values) for cells leading up to the index.
*/
getSizeAndPositionOfCell(index: number): SizeAndPositionData;
getSizeAndPositionOfLastMeasuredCell(): SizeAndPositionData;
/**
* Total size of all cells being measured.
* This value will be completedly estimated initially.
* As cells as measured the estimate will be updated.
*/
* Total size of all cells being measured.
* This value will be completedly estimated initially.
* As cells as measured the estimate will be updated.
*/
getTotalSize(): number;
/**
* Determines a new offset that ensures a certain cell is visible, given the current offset.
@@ -202,7 +202,7 @@ export class Grid extends PureComponent<GridProps, GridState> {
* Responsible for rendering a cell given an row and column index.
* Should implement the following interface: ({ columnIndex: number, rowIndex: number }): PropTypes.node
*/
cellRenderer: Validator< (props: GridCellProps) => React.ReactNode>,
cellRenderer: Validator<(props: GridCellProps) => React.ReactNode>,
/**
* Responsible for rendering a group of cells given their index ranges.
@@ -458,4 +458,4 @@ export class Grid extends PureComponent<GridProps, GridState> {
render(): JSX.Element;
}
export const defaultCellRangeRenderer: GridCellRangeRenderer;
export const defaultCellRangeRenderer: GridCellRangeRenderer;
+2 -3
View File
@@ -83,7 +83,6 @@ export type MasonryState = {
* (Items may not span multiple columns.)
*/
export class Masonry extends PureComponent<MasonryProps, MasonryState> {
static defaultProps: {
autoHeight: false,
keyMapper: identity,
@@ -140,6 +139,6 @@ export type resetParams = {
spacer?: number
};
export type Positioner = ((index: number) => Position) & {reset: (params: resetParams) => void};
export type Positioner = ((index: number) => Position) & { reset: (params: resetParams) => void };
export const createCellPositioner: (params: createCellPositionerParams) => Positioner;
export const createCellPositioner: (params: createCellPositionerParams) => Positioner;
+1 -1
View File
@@ -48,4 +48,4 @@ export class ScrollSync extends PureComponent<ScrollSyncProps, ScrollSyncState>
constructor(props: ScrollSyncProps, context: any);
render(): JSX.Element;
}
}
+5 -5
View File
@@ -33,7 +33,7 @@ export type TableHeaderRowProps = {
};
export type TableRowProps = {
className: string,
columns: Array<any>,
columns: any[],
index: number,
isScrolling: boolean,
onRowClick?: (params: RowMouseEventHandlerParams) => void,
@@ -198,7 +198,7 @@ export type TableProps = {
export const defaultTableCellDataGetter: TableCellDataGetter;
export const defaultTableCellRenderer: TableCellRenderer;
export const defaultTableHeaderRenderer: () => React.ReactElement<TableHeaderProps>[];
export const defaultTableHeaderRenderer: () => Array<React.ReactElement<TableHeaderProps>>;
export const defaultTableHeaderRowRenderer: TableHeaderRowRenderer;
export const defaultTableRowRenderer: TableRowRenderer;
@@ -286,9 +286,9 @@ export class Table extends PureComponent<TableProps, {}> {
noRowsRenderer: Requireable<() => JSX.Element>,
/**
* Optional callback when a column's header is clicked.
* ({ columnData: any, dataKey: string }): void
*/
* Optional callback when a column's header is clicked.
* ({ columnData: any, dataKey: string }): void
*/
onHeaderClick: Requireable<(params: HeaderMouseEventHandlerParams) => void>,
/**
+1 -1
View File
@@ -164,4 +164,4 @@ export type ScrollEventData = {
clientHeight: number,
scrollHeight: number,
scrollTop: number
}
}
@@ -113,7 +113,7 @@ export class AutoSizerExample extends PureComponent<any, any> {
)
}
}
import { } from 'react'
import { } from 'react'
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized'
export class DynamicHeightList extends PureComponent<any, any> {
@@ -194,7 +194,6 @@ const GUTTER_SIZE = 3
const CELL_WIDTH = 75
export class CollectionExample extends PureComponent<any, any> {
_columnYMap: any;
constructor(props, context) {
@@ -457,8 +456,6 @@ export class ColumnSizerExample extends PureComponent<any, any> {
}
export class GridExample extends PureComponent<any, any> {
constructor(props, context) {
super(props, context)
@@ -731,7 +728,7 @@ export class InfiniteLoaderExample extends PureComponent<any, any> {
const { loadedRowsMap, loadingRowCount } = this.state
const increment = stopIndex - startIndex + 1
for (var i = startIndex; i <= stopIndex; i++) {
for (let i = startIndex; i <= stopIndex; i++) {
loadedRowsMap[i] = STATUS_LOADING
}
@@ -744,7 +741,7 @@ export class InfiniteLoaderExample extends PureComponent<any, any> {
delete this._timeoutIdMap[timeoutId]
for (var i = startIndex; i <= stopIndex; i++) {
for (let i = startIndex; i <= stopIndex; i++) {
loadedRowsMap[i] = STATUS_LOADED
}
@@ -1251,7 +1248,7 @@ export class MultiGridExample extends PureComponent<any, any> {
}
}
import {ScrollSync } from 'react-virtualized'
import { ScrollSync } from 'react-virtualized'
const LEFT_COLOR_FROM = hexToRgb('#471061')
const LEFT_COLOR_TO = hexToRgb('#BC3959')
@@ -1532,59 +1529,59 @@ export class TableExample extends PureComponent<any, any> {
const rowGetter = ({ index }) => this._getDatum(sortedList, index)
return (
<div>
<AutoSizer disableHeight>
{({ width }) => (
<Table
ref='Table'
disableHeader={disableHeader}
headerClassName={'styles.headerColumn'}
headerHeight={headerHeight}
height={height}
noRowsRenderer={this._noRowsRenderer}
overscanRowCount={overscanRowCount}
rowClassName={this._rowClassName}
rowHeight={useDynamicRowHeight ? this._getRowHeight : rowHeight}
rowGetter={rowGetter}
rowCount={rowCount}
scrollToIndex={scrollToIndex}
sort={this._sort}
sortBy={sortBy}
sortDirection={sortDirection}
width={width}
>
{!hideIndexRow &&
<Column
label='Index'
cellDataGetter={
({ columnData, dataKey, rowData }) => rowData.index
}
dataKey='index'
disableSort={!this._isSortEnabled()}
width={60}
/>
}
<div>
<AutoSizer disableHeight>
{({ width }) => (
<Table
ref='Table'
disableHeader={disableHeader}
headerClassName={'styles.headerColumn'}
headerHeight={headerHeight}
height={height}
noRowsRenderer={this._noRowsRenderer}
overscanRowCount={overscanRowCount}
rowClassName={this._rowClassName}
rowHeight={useDynamicRowHeight ? this._getRowHeight : rowHeight}
rowGetter={rowGetter}
rowCount={rowCount}
scrollToIndex={scrollToIndex}
sort={this._sort}
sortBy={sortBy}
sortDirection={sortDirection}
width={width}
>
{!hideIndexRow &&
<Column
dataKey='name'
disableSort={!this._isSortEnabled()}
headerRenderer={this._headerRenderer}
width={90}
/>
<Column
width={210}
disableSort
label='The description label is really long so that it will be truncated'
dataKey='random'
className={'styles.exampleColumn'}
cellRenderer={
({ cellData, columnData, dataKey, rowData, rowIndex }) => cellData
label='Index'
cellDataGetter={
({ columnData, dataKey, rowData }) => rowData.index
}
flexGrow={1}
dataKey='index'
disableSort={!this._isSortEnabled()}
width={60}
/>
</Table>
)}
</AutoSizer>
</div>
}
<Column
dataKey='name'
disableSort={!this._isSortEnabled()}
headerRenderer={this._headerRenderer}
width={90}
/>
<Column
width={210}
disableSort
label='The description label is really long so that it will be truncated'
dataKey='random'
className={'styles.exampleColumn'}
cellRenderer={
({ cellData, columnData, dataKey, rowData, rowIndex }) => cellData
}
flexGrow={1}
/>
</Table>
)}
</AutoSizer>
</div>
)
}
+12 -1
View File
@@ -1 +1,12 @@
{ "extends": "../tslint.json" }
{
"extends": "../tslint.json",
"rules": {
"interface-over-type-literal": false,
"semicolon": [
false
],
"prefer-method-signature": false,
"prefer-declare-function": false,
"no-padding": false
}
}