From dd5757ce65673781cbef5e36cde3af92a126307f Mon Sep 17 00:00:00 2001 From: endiliey Date: Mon, 30 Jul 2018 15:50:48 +0800 Subject: [PATCH] chore: prettier & remove unused --- lib/core/blogPost.js | 2 +- lib/core/index.js | 4 +--- lib/dev.js | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/core/blogPost.js b/lib/core/blogPost.js index d3611ade2f..bc02cbfdc1 100644 --- a/lib/core/blogPost.js +++ b/lib/core/blogPost.js @@ -1,4 +1,4 @@ -const React = require('react'); +import React from 'react'; import blogDatas from '@generated/blogDatas'; // inner blog component for the article itself, without sidebar/header/footer diff --git a/lib/core/index.js b/lib/core/index.js index 5f95439fb0..fcda46fd90 100644 --- a/lib/core/index.js +++ b/lib/core/index.js @@ -18,9 +18,7 @@ class App extends React.Component { {blogDatas.map(({path}) => { return (
- - {path} - + {path}
); })} diff --git a/lib/dev.js b/lib/dev.js index c0975f7f83..4810e52e5f 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -98,5 +98,4 @@ module.exports = async function dev(sourceDir, cliOptions = {}) { } } ); - console.log("finish serve"); };