chore: remove unused imports (#1534)
This commit is contained in:
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import { List } from 'immutable';
|
||||
import Shortcode from './Shortcode';
|
||||
|
||||
/**
|
||||
|
@ -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', () => {
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
/**
|
||||
|
@ -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';
|
||||
|
||||
/**
|
||||
|
@ -1,13 +1,10 @@
|
||||
import {
|
||||
get,
|
||||
set,
|
||||
find,
|
||||
findLast,
|
||||
startsWith,
|
||||
endsWith,
|
||||
trimStart,
|
||||
trimEnd,
|
||||
concat,
|
||||
flatMap
|
||||
} from 'lodash';
|
||||
import u from 'unist-builder';
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
import styled, { css } from 'react-emotion';
|
||||
import styled from 'react-emotion';
|
||||
|
||||
export const editorStyleVars = {
|
||||
stickyDistanceBottom: '100px',
|
||||
|
Reference in New Issue
Block a user