-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto fix eslint errors where possible (#4673)
- Loading branch information
1 parent
334d54d
commit 67e5ccb
Showing
197 changed files
with
1,219 additions
and
1,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,121 +1,71 @@ | ||
import { | ||
UseColumnOrderInstanceProps, | ||
UseColumnOrderState, | ||
UseExpandedHooks, | ||
UseExpandedInstanceProps, | ||
UseExpandedOptions, | ||
UseExpandedRowProps, | ||
UseExpandedState, | ||
UseFiltersColumnOptions, | ||
UseFiltersColumnProps, | ||
UseFiltersInstanceProps, | ||
UseFiltersOptions, | ||
UseFiltersState, | ||
UseGlobalFiltersColumnOptions, | ||
UseGlobalFiltersInstanceProps, | ||
UseGlobalFiltersOptions, | ||
UseGlobalFiltersState, | ||
UseGroupByCellProps, | ||
UseGroupByColumnOptions, | ||
UseGroupByColumnProps, | ||
UseGroupByHooks, | ||
UseGroupByInstanceProps, | ||
UseGroupByOptions, | ||
UseGroupByRowProps, | ||
UseGroupByState, | ||
UsePaginationInstanceProps, | ||
UsePaginationOptions, | ||
UsePaginationState, | ||
UseResizeColumnsColumnOptions, | ||
UseResizeColumnsColumnProps, | ||
UseResizeColumnsOptions, | ||
UseResizeColumnsState, | ||
UseRowSelectHooks, | ||
UseRowSelectInstanceProps, | ||
UseRowSelectOptions, | ||
UseRowSelectRowProps, | ||
UseRowSelectState, | ||
UseRowStateCellProps, | ||
UseRowStateInstanceProps, | ||
UseRowStateOptions, | ||
UseRowStateRowProps, | ||
UseRowStateState, | ||
UseSortByColumnOptions, | ||
UseSortByColumnProps, | ||
UseSortByHooks, | ||
UseSortByInstanceProps, | ||
UseSortByOptions, | ||
UseSortByState, | ||
type UseColumnOrderInstanceProps, | ||
type UseColumnOrderState, | ||
type UseExpandedHooks, | ||
type UseExpandedInstanceProps, | ||
type UseExpandedOptions, | ||
type UseExpandedRowProps, | ||
type UseExpandedState, | ||
type UseFiltersColumnOptions, | ||
type UseFiltersColumnProps, | ||
type UseFiltersInstanceProps, | ||
type UseFiltersOptions, | ||
type UseFiltersState, | ||
type UseGlobalFiltersColumnOptions, | ||
type UseGlobalFiltersInstanceProps, | ||
type UseGlobalFiltersOptions, | ||
type UseGlobalFiltersState, | ||
type UseGroupByCellProps, | ||
type UseGroupByColumnOptions, | ||
type UseGroupByColumnProps, | ||
type UseGroupByHooks, | ||
type UseGroupByInstanceProps, | ||
type UseGroupByOptions, | ||
type UseGroupByRowProps, | ||
type UseGroupByState, | ||
type UsePaginationInstanceProps, | ||
type UsePaginationOptions, | ||
type UsePaginationState, | ||
type UseResizeColumnsColumnOptions, | ||
type UseResizeColumnsColumnProps, | ||
type UseResizeColumnsOptions, | ||
type UseResizeColumnsState, | ||
type UseRowSelectHooks, | ||
type UseRowSelectInstanceProps, | ||
type UseRowSelectOptions, | ||
type UseRowSelectRowProps, | ||
type UseRowSelectState, | ||
type UseRowStateCellProps, | ||
type UseRowStateInstanceProps, | ||
type UseRowStateOptions, | ||
type UseRowStateRowProps, | ||
type UseRowStateState, | ||
type UseSortByColumnOptions, | ||
type UseSortByColumnProps, | ||
type UseSortByHooks, | ||
type UseSortByInstanceProps, | ||
type UseSortByOptions, | ||
type UseSortByState, | ||
} from "react-table"; | ||
|
||
declare module "react-table" { | ||
// take this file as-is, or comment out the sections that don't apply to your plugin configuration | ||
|
||
export interface TableOptions< | ||
export type TableOptions< | ||
D extends object = {} | ||
> extends UseExpandedOptions<D>, | ||
UseFiltersOptions<D>, | ||
UseGlobalFiltersOptions<D>, | ||
UseGroupByOptions<D>, | ||
UsePaginationOptions<D>, | ||
UseResizeColumnsOptions<D>, | ||
UseRowSelectOptions<D>, | ||
UseRowStateOptions<D>, | ||
UseSortByOptions<D>, | ||
// note that having Record here allows you to add anything to the options, this matches the spirit of the | ||
// underlying js library, but might be cleaner if it's replaced by a more specific type that matches your | ||
// feature set, this is a safe default. | ||
Record<string, any> {} | ||
> = {} & UseExpandedOptions<D> & UseFiltersOptions<D> & UseGlobalFiltersOptions<D> & UseGroupByOptions<D> & UsePaginationOptions<D> & UseResizeColumnsOptions<D> & UseRowSelectOptions<D> & UseRowStateOptions<D> & UseSortByOptions<D> & Record<string, any> | ||
|
||
export interface Hooks<D extends object = {}> | ||
extends UseExpandedHooks<D>, | ||
UseGroupByHooks<D>, | ||
UseRowSelectHooks<D>, | ||
UseSortByHooks<D> {} | ||
export type Hooks<D extends object = {}> = {} & UseExpandedHooks<D> & UseGroupByHooks<D> & UseRowSelectHooks<D> & UseSortByHooks<D> | ||
|
||
export interface TableInstance<D extends object = {}> | ||
extends UseColumnOrderInstanceProps<D>, | ||
UseExpandedInstanceProps<D>, | ||
UseFiltersInstanceProps<D>, | ||
UseGlobalFiltersInstanceProps<D>, | ||
UseGroupByInstanceProps<D>, | ||
UsePaginationInstanceProps<D>, | ||
UseRowSelectInstanceProps<D>, | ||
UseRowStateInstanceProps<D>, | ||
UseSortByInstanceProps<D> {} | ||
export type TableInstance<D extends object = {}> = {} & UseColumnOrderInstanceProps<D> & UseExpandedInstanceProps<D> & UseFiltersInstanceProps<D> & UseGlobalFiltersInstanceProps<D> & UseGroupByInstanceProps<D> & UsePaginationInstanceProps<D> & UseRowSelectInstanceProps<D> & UseRowStateInstanceProps<D> & UseSortByInstanceProps<D> | ||
|
||
export interface TableState<D extends object = {}> | ||
extends UseColumnOrderState<D>, | ||
UseExpandedState<D>, | ||
UseFiltersState<D>, | ||
UseGlobalFiltersState<D>, | ||
UseGroupByState<D>, | ||
UsePaginationState<D>, | ||
UseResizeColumnsState<D>, | ||
UseRowSelectState<D>, | ||
UseRowStateState<D>, | ||
UseSortByState<D> {} | ||
export type TableState<D extends object = {}> = {} & UseColumnOrderState<D> & UseExpandedState<D> & UseFiltersState<D> & UseGlobalFiltersState<D> & UseGroupByState<D> & UsePaginationState<D> & UseResizeColumnsState<D> & UseRowSelectState<D> & UseRowStateState<D> & UseSortByState<D> | ||
|
||
export interface ColumnInterface<D extends object = {}> | ||
extends UseFiltersColumnOptions<D>, | ||
UseGlobalFiltersColumnOptions<D>, | ||
UseGroupByColumnOptions<D>, | ||
UseResizeColumnsColumnOptions<D>, | ||
UseSortByColumnOptions<D> {} | ||
export type ColumnInterface<D extends object = {}> = {} & UseFiltersColumnOptions<D> & UseGlobalFiltersColumnOptions<D> & UseGroupByColumnOptions<D> & UseResizeColumnsColumnOptions<D> & UseSortByColumnOptions<D> | ||
|
||
export interface ColumnInstance<D extends object = {}> | ||
extends UseFiltersColumnProps<D>, | ||
UseGroupByColumnProps<D>, | ||
UseResizeColumnsColumnProps<D>, | ||
UseSortByColumnProps<D> {} | ||
export type ColumnInstance<D extends object = {}> = {} & UseFiltersColumnProps<D> & UseGroupByColumnProps<D> & UseResizeColumnsColumnProps<D> & UseSortByColumnProps<D> | ||
|
||
export interface Cell<D extends object = {}, V = any> | ||
extends UseGroupByCellProps<D>, | ||
UseRowStateCellProps<D> {} | ||
export type Cell<D extends object = {}, V = any> = {} & UseGroupByCellProps<D> & UseRowStateCellProps<D> | ||
|
||
export interface Row<D extends object = {}> | ||
extends UseExpandedRowProps<D>, | ||
UseGroupByRowProps<D>, | ||
UseRowSelectRowProps<D>, | ||
UseRowStateRowProps<D> {} | ||
export type Row<D extends object = {}> = {} & UseExpandedRowProps<D> & UseGroupByRowProps<D> & UseRowSelectRowProps<D> & UseRowStateRowProps<D> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.