chore: introduce imports ordering (#5463)

This commit is contained in:
Vladislav Shkodin
2021-05-31 16:46:41 +02:00
committed by GitHub
parent 30f0e7b031
commit dbf2920254
212 changed files with 570 additions and 342 deletions

View File

@ -4,6 +4,7 @@ import dayjs from 'dayjs';
import Prism from 'prismjs';
import { CacheProvider } from '@emotion/core';
import createCache from '@emotion/cache';
import BlogPostTemplate from '../components/blog-post-template';
import { LayoutTemplate as Layout } from '../components/layout';
import DocsTemplate from '../components/docs-template';

View File

@ -1,5 +1,6 @@
import React from 'react';
import styled from '@emotion/styled';
import theme from '../theme';
const StyledCommunityChannelsList = styled.ul`

View File

@ -1,5 +1,6 @@
import React from 'react';
import { css } from '@emotion/core';
import Markdownify from './markdownify';
import PageHero from './page-hero';
import HeroTitle from './hero-title';

View File

@ -3,7 +3,6 @@ import moment from 'moment';
import styled from '@emotion/styled';
import Markdownify from './markdownify';
import theme from '../theme';
const Root = styled.div`

View File

@ -2,7 +2,6 @@ import React from 'react';
import styled from '@emotion/styled';
import Container from './container';
import theme from '../theme';
import { mq } from '../utils';

View File

@ -2,15 +2,13 @@ import React, { useState, useEffect } from 'react';
import { Link, graphql, StaticQuery } from 'gatsby';
import styled from '@emotion/styled';
import { css } from '@emotion/core';
import GitHubButton from 'react-github-btn';
import Container from './container';
import Notifications from './notifications';
import DocSearch from './docsearch';
import logo from '../img/netlify-cms-logo.svg';
import searchIcon from '../img/search.svg';
import theme from '../theme';
import { mq } from '../utils';

View File

@ -1,4 +1,5 @@
import styled from '@emotion/styled';
import theme from '../theme';
import { mq } from '../utils';

View File

@ -3,7 +3,6 @@ import styled from '@emotion/styled';
import Container from './container';
import Page from './page';
import theme from '../theme';
const Header = styled.header`

View File

@ -2,6 +2,7 @@ import React from 'react';
import { Helmet } from 'react-helmet';
import { graphql, StaticQuery } from 'gatsby';
import { ThemeProvider } from 'emotion-theming';
import Header from './header';
import Footer from './footer';
import GlobalStyles from '../global-styles';

View File

@ -1,4 +1,5 @@
import React from 'react';
import Notification from './notification';
function Notifications({ notifications }) {

View File

@ -2,7 +2,6 @@ import React from 'react';
import { css } from '@emotion/core';
import Container from './container';
import theme from '../theme';
import { mq } from '../utils';

View File

@ -1,9 +1,9 @@
import React from 'react';
import { css } from '@emotion/core';
import styled from '@emotion/styled';
import Page from './page';
import { mq } from '../utils';
import styled from '@emotion/styled';
const Children = styled.div`
overflow: auto;

View File

@ -2,7 +2,6 @@ import React, { useState } from 'react';
import styled from '@emotion/styled';
import theme from '../theme';
import screenshotEditor from '../img/screenshot-editor.jpg';
const VideoLink = styled.a`

View File

@ -3,7 +3,6 @@ import styled from '@emotion/styled';
import WidgetDoc from './widget-doc';
import Button from './button';
import theme from '../theme';
const WidgetsNav = styled.nav`

View File

@ -1,4 +1,5 @@
import React from 'react';
import ChatButton from './components/chat-button';
class HTML extends React.Component {

View File

@ -8,7 +8,6 @@ import Container from '../components/container';
import MetaInfo from '../components/meta-info';
import Page from '../components/page';
import Lead from '../components/lead';
import theme from '../theme';
function Blog({ data }) {

View File

@ -13,7 +13,6 @@ import Lead from '../components/lead';
import Features from '../components/features';
import HomeSection from '../components/home-section';
import Grid from '../components/grid';
import theme from '../theme';
import { mq } from '../utils';