From 7ff2c7c0794a0c1bbabb8188ca2f00e78d4eb078 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Thu, 26 Dec 2019 15:25:46 +0800 Subject: [PATCH] fix: lint --- site/theme/template/Content/MainContent.jsx | 3 +-- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/site/theme/template/Content/MainContent.jsx b/site/theme/template/Content/MainContent.jsx index 69b60011fd..927a315016 100644 --- a/site/theme/template/Content/MainContent.jsx +++ b/site/theme/template/Content/MainContent.jsx @@ -3,14 +3,13 @@ import PropTypes from 'prop-types'; import { Link } from 'bisheng/router'; import { Row, Col, Menu, Affix, Tooltip, Avatar } from 'antd'; import { injectIntl } from 'react-intl'; -import { LeftOutlined, RightOutlined, ExpandOutlined, ExportOutlined } from '@ant-design/icons'; +import { LeftOutlined, RightOutlined, ExportOutlined } from '@ant-design/icons'; import ContributorsList from '@qixian.cs/github-contributors-list'; import classNames from 'classnames'; import get from 'lodash/get'; import MobileMenu from 'rc-drawer'; import { DarkIcon, DefaultIcon } from './ThemeIcon'; -import Icon from '../Icon'; import Article from './Article'; import PrevAndNext from './PrevAndNext'; import Footer from '../Layout/Footer'; diff --git a/webpack.config.js b/webpack.config.js index cea1f779de..62a3dc0db5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,8 +3,8 @@ const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig'); const PacktrackerPlugin = require('@packtracker/webpack-plugin'); const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin'); -const darkVars = require('./scripts/dark-vars'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; +const darkVars = require('./scripts/dark-vars'); const { webpack } = getWebpackConfig;