Skip to content

Commit

Permalink
Lint cleanup (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon authored Jul 2, 2018
1 parent 6345566 commit bf8c97f
Show file tree
Hide file tree
Showing 41 changed files with 63 additions and 68 deletions.
4 changes: 2 additions & 2 deletions src/view/droppable/droppable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import type { Props, Provided, StateSnapshot } from './droppable-types';
import type { DroppableId, TypeId } from '../../types';
import DroppableDimensionPublisher from '../droppable-dimension-publisher/';
import Placeholder from '../placeholder/';
import DroppableDimensionPublisher from '../droppable-dimension-publisher';
import Placeholder from '../placeholder';
import throwIfRefIsInvalid from '../throw-if-invalid-inner-ref';
import {
droppableIdKey,
Expand Down
4 changes: 2 additions & 2 deletions stories/src/accessible/task-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import TaskList from './task-list';
import initial from './data';
import reorder from '../reorder';
import { grid } from '../constants';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from "../../../src";
import type {
Announce,
DragStart,
DragUpdate,
DropResult,
DraggableLocation,
HookProvided,
} from '../../../src/';
} from "../../../src";
import type { Task } from '../types';

type State = {|
Expand Down
4 changes: 2 additions & 2 deletions stories/src/accessible/task-list.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { Droppable } from '../../../src/';
import { Droppable } from '../../../src';
import Task from './task';
import type { DroppableProvided } from '../../../src/';
import type { DroppableProvided } from '../../../src';
import type { Task as TaskType } from '../types';
import { colors, grid, borderRadius } from '../constants';

Expand Down
4 changes: 2 additions & 2 deletions stories/src/board/board.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { action } from '@storybook/addon-actions';
import Column from './column';
import { colors } from '../constants';
import reorder, { reorderQuoteMap } from '../reorder';
import { DragDropContext, Droppable } from '../../../src/';
import { DragDropContext, Droppable } from '../../../src';
import type {
DropResult,
DragStart,
DraggableLocation,
DroppableProvided,
} from '../../../src/';
} from '../../../src';
import type { QuoteMap } from '../types';

const publishOnDragStart = action('onDragStart');
Expand Down
4 changes: 2 additions & 2 deletions stories/src/board/column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { grid, colors, borderRadius } from '../constants';
import { Draggable } from '../../../src/';
import type { DraggableProvided, DraggableStateSnapshot } from '../../../src/';
import { Draggable } from '../../../src';
import type { DraggableProvided, DraggableStateSnapshot } from '../../../src';
import QuoteList from '../primatives/quote-list';
import Title from '../primatives/title';
import type { Quote } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion stories/src/dynamic/lazy-loading.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import React from 'react';
import QuoteList from '../primatives/quote-list';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import type {
DropResult,
DragUpdate,
Expand Down
2 changes: 1 addition & 1 deletion stories/src/dynamic/with-controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';
import styled from 'styled-components';
import QuoteList from '../primatives/quote-list';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import { generateQuoteMap, authors } from '../data';
import { reorderQuoteMap } from '../reorder';
import { grid } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion stories/src/horizontal/author-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { action } from '@storybook/addon-actions';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import type { DropResult, DragStart } from '../../../src';
import type { Quote } from '../types';
import AuthorList from '../primatives/author-list';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import React, { type Node } from 'react';
import styled from 'styled-components';
import { DragDropContext, Droppable, Draggable } from '../../../src/';
import { DragDropContext, Droppable, Draggable } from '../../../src';
import { grid, colors } from '../constants';
import reorder from '../reorder';
import type {
Expand Down
4 changes: 2 additions & 2 deletions stories/src/multi-drag/column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import memoizeOne from 'memoize-one';
import { Droppable } from '../../../src/';
import { Droppable } from '../../../src';
import { grid, colors, borderRadius } from '../constants';
import Task from './task';
import type { DroppableProvided, DroppableStateSnapshot } from '../../../src/';
import type { DroppableProvided, DroppableStateSnapshot } from '../../../src';
import type { Column as ColumnType } from './types';
import type { Task as TaskType, Id } from '../types';

Expand Down
4 changes: 2 additions & 2 deletions stories/src/multi-drag/task-app.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import initial from './data';
import Column from './column';
import type { Result as ReorderResult } from './utils';
import { mutliDragAwareReorder, multiSelectTo as multiSelect } from './utils';
import type { DragStart, DropResult, DraggableLocation } from '../../../src/';
import type { DragStart, DropResult, DraggableLocation } from '../../../src';
import type { Task, Id } from '../types';
import type { Entities } from './types';

Expand Down
2 changes: 1 addition & 1 deletion stories/src/multiple-horizontal/quote-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { action } from '@storybook/addon-actions';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import AuthorList from '../primatives/author-list';
import { colors, grid } from '../constants';
import { reorderQuoteMap } from '../reorder';
Expand Down
2 changes: 1 addition & 1 deletion stories/src/multiple-vertical/quote-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { action } from '@storybook/addon-actions';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import QuoteList from '../primatives/quote-list';
import { colors, grid } from '../constants';
import { reorderQuoteMap } from '../reorder';
Expand Down
2 changes: 1 addition & 1 deletion stories/src/primatives/author-item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { colors, grid } from '../constants';
import type { DraggableProvided, DraggableStateSnapshot } from '../../../src/';
import type { DraggableProvided, DraggableStateSnapshot } from '../../../src';
import type { Author } from '../types';

const Avatar = styled.img`
Expand Down
4 changes: 2 additions & 2 deletions stories/src/primatives/author-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { Droppable, Draggable } from '../../../src';
import Author from '../primatives/author-item';
import Author from './author-item';
import { grid, colors } from '../constants';
import type { Quote } from '../types';
import type {
DroppableProvided,
DroppableStateSnapshot,
DraggableProvided,
DraggableStateSnapshot,
} from '../../../src/';
} from '../../../src';

const Wrapper = styled.div`
background-color: ${({ isDraggingOver }) =>
Expand Down
6 changes: 3 additions & 3 deletions stories/src/primatives/quote-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import React from 'react';
import styled from 'styled-components';
import { Droppable, Draggable } from '../../../src';
import QuoteItem from '../primatives/quote-item';
import QuoteItem from './quote-item';
import { grid, colors } from '../constants';
import Title from '../primatives/title';
import Title from './title';
import type { Quote } from '../types';
import type {
DroppableProvided,
DroppableStateSnapshot,
DraggableProvided,
DraggableStateSnapshot,
} from '../../../src/';
} from '../../../src';

const Wrapper = styled.div`
background-color: ${({ isDraggingOver }) =>
Expand Down
2 changes: 1 addition & 1 deletion stories/src/simple/simple-scrollable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable flowtype/require-valid-file-annotation */

import React, { Component } from 'react';
import { DragDropContext, Droppable, Draggable } from '../../../src/';
import { DragDropContext, Droppable, Draggable } from '../../../src';

// fake data generator
const getItems = count =>
Expand Down
2 changes: 1 addition & 1 deletion stories/src/simple/simple.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable flowtype/require-valid-file-annotation */

import React, { Component } from 'react';
import { DragDropContext, Droppable, Draggable } from '../../../src/';
import { DragDropContext, Droppable, Draggable } from '../../../src';

// fake data generator
const getItems = count =>
Expand Down
2 changes: 1 addition & 1 deletion stories/src/vertical-grouped/quote-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { action } from '@storybook/addon-actions';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import QuoteList from '../primatives/quote-list';
import { colors, grid } from '../constants';
import { reorderQuoteMap } from '../reorder';
Expand Down
2 changes: 1 addition & 1 deletion stories/src/vertical-nested/quote-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
DroppableStateSnapshot,
DraggableProvided,
DraggableStateSnapshot,
} from '../../../src/';
} from '../../../src';

const Root = styled.div`
width: 250px;
Expand Down
2 changes: 1 addition & 1 deletion stories/src/vertical/quote-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { action } from '@storybook/addon-actions';
import { DragDropContext } from '../../../src/';
import { DragDropContext } from '../../../src';
import QuoteList from '../primatives/quote-list';
import { colors, grid } from '../constants';
import reorder from '../reorder';
Expand Down
1 change: 0 additions & 1 deletion website/src/components/ExampleWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const ActionLink = styled.button`
margin: 0 ${grid}px;
padding: ${grid * 1}px ${grid * 2}px;
border-radius: 2px;
border-radius: 2px;
color: ${colors.N10};
font-size: 1.1rem;
font-weight: bold;
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/accessible/task-app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import TaskList from './task-list';
import initial from './data';
import reorder from '../reorder';
import { grid } from '../constants';
import { DragDropContext } from '../../../../../src/';
import { DragDropContext } from '../../../../../src';
import type {
Announce,
DragStart,
DragUpdate,
DropResult,
DraggableLocation,
HookProvided,
} from '../../../../../src/';
} from '../../../../../src';
import type { Task } from '../types';

type State = {|
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/accessible/task-list.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { Droppable } from '../../../../../src/';
import { Droppable } from '../../../../../src';
import Task from './task';
import type { DroppableProvided } from '../../../../../src/';
import type { DroppableProvided } from '../../../../../src';
import type { Task as TaskType } from '../types';
import { colors, grid, borderRadius } from '../constants';

Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/accessible/task.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { Draggable } from '../../../../../src/';
import { Draggable } from '../../../../../src';
import type {
DraggableProvided,
DraggableStateSnapshot,
} from '../../../../../src/';
} from '../../../../../src';
import type { Task as TaskType } from '../types';
import { colors, grid, borderRadius } from '../constants';

Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/board/board.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import styled, { injectGlobal } from 'styled-components';
import Column from './column';
import { colors } from '../constants';
import reorder, { reorderQuoteMap } from '../reorder';
import { DragDropContext, Droppable } from '../../../../../src/';
import { DragDropContext, Droppable } from '../../../../../src';
import type {
DropResult,
DragStart,
DraggableLocation,
DroppableProvided,
} from '../../../../../src/';
} from '../../../../../src';
import type { QuoteMap } from '../types';

/* eslint-disable no-console */
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/board/column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import { grid, colors, borderRadius } from '../constants';
import { Draggable } from '../../../../../src/';
import { Draggable } from '../../../../../src';
import type {
DraggableProvided,
DraggableStateSnapshot,
} from '../../../../../src/';
} from '../../../../../src';
import QuoteList from '../primatives/quote-list';
import Title from '../primatives/title';
import type { Quote } from '../types';
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/horizontal/author-app.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { DragDropContext } from '../../../../../src/';
import type { DropResult, DragStart } from '../../../../../src/';
import { DragDropContext } from '../../../../../src';
import type { DropResult, DragStart } from '../../../../../src';
import type { Quote } from '../types';
import AuthorList from '../primatives/author-list';
import reorder from '../reorder';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// @flow
import React, { type Node } from 'react';
import styled from 'styled-components';
import { DragDropContext, Droppable, Draggable } from '../../../../../src/';
import { DragDropContext, Droppable, Draggable } from '../../../../../src';
import { grid, colors } from '../constants';
import reorder from '../reorder';
import type {
DropResult,
DroppableProvided,
DraggableProvided,
} from '../../../../../src/';
} from '../../../../../src';

type ItemType = {|
id: string,
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/multi-drag/column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import memoizeOne from 'memoize-one';
import { Droppable } from '../../../../../src/';
import { Droppable } from '../../../../../src';
import { grid, colors, borderRadius } from '../constants';
import Task from './task';
import type {
DroppableProvided,
DroppableStateSnapshot,
} from '../../../../../src/';
} from '../../../../../src';
import type { Column as ColumnType } from './types';
import type { Task as TaskType, Id } from '../types';

Expand Down
4 changes: 2 additions & 2 deletions website/src/components/examples/multi-drag/task-app.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import React, { Component } from 'react';
import styled from 'styled-components';
import { DragDropContext } from '../../../../../src/';
import { DragDropContext } from '../../../../../src';
import initial from './data';
import Column from './column';
import type { Result as ReorderResult } from './utils';
Expand All @@ -10,7 +10,7 @@ import type {
DragStart,
DropResult,
DraggableLocation,
} from '../../../../../src/';
} from '../../../../../src';
import type { Task, Id } from '../types';
import type { Entities } from './types';

Expand Down
Loading

0 comments on commit bf8c97f

Please sign in to comment.