chore: remove unused imports (#1534)

This commit is contained in:
Caleb
2018-07-28 14:33:42 -06:00
committed by Shawn Erquhart
parent 99d4b2b50c
commit 4f6e8cea44
44 changed files with 33 additions and 83 deletions

View File

@ -4,7 +4,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import styled, { css } from 'react-emotion';
import { List } from 'immutable';
import {
Icon,
Toggle,
Dropdown,
DropdownItem,

View File

@ -1,12 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import styled, { css, cx } from 'react-emotion';
import styled, { cx } from 'react-emotion';
import { get, isEmpty, debounce } from 'lodash';
import { Map } from 'immutable';
import { Value, Document, Block, Text } from 'slate';
import { Editor as Slate } from 'slate-react';
import { lengths, fonts } from 'netlify-cms-ui-default';
import { slateToMarkdown, markdownToSlate, htmlToSlate } from '../serializers';
import Toolbar from '../MarkdownControl/Toolbar';
import { renderNode, renderMark } from './renderers';
@ -14,7 +13,7 @@ import { validateNode } from './validators';
import plugins, { EditListConfigured } from './plugins';
import onKeyDown from './keys';
import visualEditorStyles from './visualEditorStyles';
import { editorStyleVars, EditorControlBar } from '../styles';
import { EditorControlBar } from '../styles';
const VisualEditorContainer = styled.div`
position: relative;

View File

@ -1,6 +1,5 @@
import { Text, Inline } from 'slate';
import isHotkey from 'is-hotkey';
import SlateSoftBreak from 'slate-soft-break';
import EditList from 'slate-edit-list';
import EditTable from 'slate-edit-table';

View File

@ -1,5 +1,4 @@
import React from 'react';
import { List } from 'immutable';
import Shortcode from './Shortcode';
/**

View File

@ -1,14 +1,11 @@
/* eslint max-len:0 */
import React from 'react';
import { shallow } from 'enzyme';
import renderer from 'react-test-renderer';
import { padStart } from 'lodash';
import MarkdownPreview from '../MarkdownPreview';
import { markdownToHtml } from '../serializers';
const parser = markdownToHtml;
describe('Markdown Preview renderer', () => {
describe('Markdown rendering', () => {
describe('General', () => {

View File

@ -1,4 +1,4 @@
import { get, isEmpty, reduce, pull, trimEnd } from 'lodash';
import { trimEnd } from 'lodash';
import unified from 'unified';
import u from 'unist-builder';
import markdownToRemarkPlugin from 'remark-parse';

View File

@ -1,4 +1,4 @@
import { concat, last, nth, isEmpty, set } from 'lodash';
import { concat, last, nth, isEmpty } from 'lodash';
import visitParents from 'unist-util-visit-parents';
/**

View File

@ -1,4 +1,4 @@
import { has, flow, partial, flatMap, flatten, map } from 'lodash';
import { has, flow, partial, map } from 'lodash';
import { joinPatternSegments, combinePatterns, replaceWhen } from '../regexHelper';
/**

View File

@ -1,13 +1,10 @@
import {
get,
set,
find,
findLast,
startsWith,
endsWith,
trimStart,
trimEnd,
concat,
flatMap
} from 'lodash';
import u from 'unist-builder';

View File

@ -1,5 +1,4 @@
import { get, isEmpty, isArray, last, flatMap } from 'lodash';
import u from 'unist-builder';
/**
* A Remark plugin for converting an MDAST to Slate Raw AST. Remark plugins

View File

@ -1,4 +1,4 @@
import styled, { css } from 'react-emotion';
import styled from 'react-emotion';
export const editorStyleVars = {
stickyDistanceBottom: '100px',