chore: introduce imports ordering (#5463)
This commit is contained in:
committed by
GitHub
parent
30f0e7b031
commit
dbf2920254
@ -9,6 +9,7 @@ import { Editor as Slate, setEventTransfer } from 'slate-react';
|
||||
import Plain from 'slate-plain-serializer';
|
||||
import isHotkey from 'is-hotkey';
|
||||
import { lengths, fonts } from 'netlify-cms-ui-default';
|
||||
|
||||
import { markdownToHtml } from '../serializers';
|
||||
import { editorStyleVars, EditorControlBar } from '../styles';
|
||||
import Toolbar from './Toolbar';
|
||||
|
@ -13,6 +13,7 @@ import {
|
||||
transitions,
|
||||
lengths,
|
||||
} from 'netlify-cms-ui-default';
|
||||
|
||||
import ToolbarButton from './ToolbarButton';
|
||||
|
||||
const ToolbarContainer = styled.div`
|
||||
|
@ -8,6 +8,7 @@ import { get, isEmpty, debounce } from 'lodash';
|
||||
import { Value, Document, Block, Text } from 'slate';
|
||||
import { Editor as Slate } from 'slate-react';
|
||||
import { lengths, fonts, zIndex } from 'netlify-cms-ui-default';
|
||||
|
||||
import { editorStyleVars, EditorControlBar } from '../styles';
|
||||
import { slateToMarkdown, markdownToSlate } from '../serializers';
|
||||
import Toolbar from '../MarkdownControl/Toolbar';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { Map, fromJS } from 'immutable';
|
||||
|
||||
import { mergeMediaConfig } from '../VisualEditor';
|
||||
|
||||
describe('VisualEditor', () => {
|
||||
|
@ -1,7 +1,8 @@
|
||||
/** @jsx h */
|
||||
|
||||
import h from '../../../test-helpers/h';
|
||||
import { Editor } from 'slate';
|
||||
|
||||
import h from '../../../test-helpers/h';
|
||||
import plugins from '../plugins/visual';
|
||||
import schema from '../schema';
|
||||
|
||||
|
@ -3,6 +3,7 @@ import React from 'react';
|
||||
import { css } from '@emotion/core';
|
||||
import { Map, fromJS } from 'immutable';
|
||||
import { omit } from 'lodash';
|
||||
|
||||
import { getEditorControl, getEditorComponents } from '../index';
|
||||
|
||||
export default class Shortcode extends React.Component {
|
||||
|
@ -1,9 +1,10 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import { List } from 'immutable';
|
||||
|
||||
import RawEditor from './RawEditor';
|
||||
import VisualEditor from './VisualEditor';
|
||||
import { List } from 'immutable';
|
||||
|
||||
const MODE_STORAGE_KEY = 'cms.md-mode';
|
||||
|
||||
|
@ -2,6 +2,7 @@ import { Document } from 'slate';
|
||||
import { setEventTransfer } from 'slate-react';
|
||||
import base64 from 'slate-base64-serializer';
|
||||
import isHotkey from 'is-hotkey';
|
||||
|
||||
import { slateToMarkdown, markdownToSlate, htmlToSlate, markdownToHtml } from '../../serializers';
|
||||
|
||||
function CopyPasteVisual({ getAsset, resolveWidget }) {
|
||||
|
@ -2,6 +2,7 @@ import { List } from 'immutable';
|
||||
import { castArray, throttle, get } from 'lodash';
|
||||
import { Range, Block } from 'slate';
|
||||
import isHotkey from 'is-hotkey';
|
||||
|
||||
import { assertType } from './util';
|
||||
|
||||
function ListPlugin({ defaultType, unorderedListType, orderedListType }) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
//import { Text, Inline } from 'slate';
|
||||
import isHotkey from 'is-hotkey';
|
||||
|
||||
import CommandsAndQueries from './CommandsAndQueries';
|
||||
import ListPlugin from './List';
|
||||
import LineBreak from './LineBreak';
|
||||
|
@ -3,6 +3,7 @@ import React from 'react';
|
||||
import { css } from '@emotion/core';
|
||||
import styled from '@emotion/styled';
|
||||
import { colors, lengths } from 'netlify-cms-ui-default';
|
||||
|
||||
import VoidBlock from './components/VoidBlock';
|
||||
import Shortcode from './components/Shortcode';
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { WidgetPreviewContainer } from 'netlify-cms-ui-default';
|
||||
import { markdownToHtml } from './serializers';
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
import { markdownToHtml } from './serializers';
|
||||
class MarkdownPreview extends React.Component {
|
||||
static propTypes = {
|
||||
getAsset: PropTypes.func.isRequired,
|
||||
|
@ -2,6 +2,7 @@ import React from 'react';
|
||||
import { create, act } from 'react-test-renderer';
|
||||
import { padStart } from 'lodash';
|
||||
import { Map } from 'immutable';
|
||||
|
||||
import MarkdownPreview from '../MarkdownPreview';
|
||||
import { markdownToHtml } from '../serializers';
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { flow } from 'lodash';
|
||||
import { tests as commonmarkSpec } from 'commonmark-spec';
|
||||
import * as commonmark from 'commonmark';
|
||||
|
||||
import { markdownToSlate, slateToMarkdown } from '../index.js';
|
||||
|
||||
const skips = [
|
||||
|
@ -1,5 +1,6 @@
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
||||
import { markdownToSlate, htmlToSlate } from '../';
|
||||
|
||||
describe('markdownToSlate', () => {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import unified from 'unified';
|
||||
import markdownToRemark from 'remark-parse';
|
||||
|
||||
import remarkAllowHtmlEntities from '../remarkAllowHtmlEntities';
|
||||
|
||||
function process(markdown) {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import u from 'unist-builder';
|
||||
|
||||
import remarkAssertParents from '../remarkAssertParents';
|
||||
|
||||
const transform = remarkAssertParents();
|
||||
|
@ -1,5 +1,6 @@
|
||||
import unified from 'unified';
|
||||
import u from 'unist-builder';
|
||||
|
||||
import remarkEscapeMarkdownEntities from '../remarkEscapeMarkdownEntities';
|
||||
|
||||
function process(text) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
import unified from 'unified';
|
||||
import markdownToRemark from 'remark-parse';
|
||||
import remarkToMarkdown from 'remark-stringify';
|
||||
|
||||
import remarkPaddedLinks from '../remarkPaddedLinks';
|
||||
|
||||
function input(markdown) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import unified from 'unified';
|
||||
import u from 'unist-builder';
|
||||
|
||||
import remarkStripTrailingBreaks from '../remarkStripTrailingBreaks';
|
||||
|
||||
function process(children) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { flow } from 'lodash';
|
||||
|
||||
import h from '../../../test-helpers/h';
|
||||
import { markdownToSlate, slateToMarkdown } from '../index';
|
||||
|
||||
|
@ -7,6 +7,7 @@ import remarkToRehype from 'remark-rehype';
|
||||
import rehypeToHtml from 'rehype-stringify';
|
||||
import htmlToRehype from 'rehype-parse';
|
||||
import rehypeToRemark from 'rehype-remark';
|
||||
|
||||
import remarkToRehypeShortcodes from './remarkRehypeShortcodes';
|
||||
import rehypePaperEmoji from './rehypePaperEmoji';
|
||||
import remarkAssertParents from './remarkAssertParents';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { has, flow, partial, map } from 'lodash';
|
||||
|
||||
import { joinPatternSegments, combinePatterns, replaceWhen } from '../regexHelper';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user