From a1394423071b65f0ae39f30088271b7a01a4f58f Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 30 Jul 2016 14:31:36 +0800 Subject: [PATCH] Fix eslint --- scripts/build-common.js | 4 ++-- site/theme/template/Content/ComponentDoc.jsx | 2 +- site/theme/template/Content/Demo.jsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build-common.js b/scripts/build-common.js index 945ad3ff61..b6dff0bcd0 100644 --- a/scripts/build-common.js +++ b/scripts/build-common.js @@ -7,8 +7,8 @@ const utils = require('./utils'); module.exports = function buildCommon(dirs, outputFile) { const mds = utils.findMDFile(dirs, true) - .filter((file) => !/\/demo$/i.test(path.dirname(file))) - .filter((file) => !/install_en\.md$/gi.test(file)); // TODO + .filter((file) => !/\/demo$/i.test(path.dirname(file))) + .filter((file) => !/install_en\.md$/gi.test(file)); // TODO const addedMd = []; let content = 'module.exports = {'; diff --git a/site/theme/template/Content/ComponentDoc.jsx b/site/theme/template/Content/ComponentDoc.jsx index a29dc618c3..4ec3722974 100644 --- a/site/theme/template/Content/ComponentDoc.jsx +++ b/site/theme/template/Content/ComponentDoc.jsx @@ -30,7 +30,7 @@ export default class ComponentDoc extends React.Component { const { content, meta } = doc; const locale = this.context.intl.locale; const demos = Object.keys(props.demos).map((key) => props.demos[key]) - .filter((demoData) => !demoData.meta.hidden); + .filter((demoData) => !demoData.meta.hidden); const expand = this.state.expandAll; const isSingleCol = meta.cols === 1; diff --git a/site/theme/template/Content/Demo.jsx b/site/theme/template/Content/Demo.jsx index 261ddaef88..8a7c9a4bf8 100644 --- a/site/theme/template/Content/Demo.jsx +++ b/site/theme/template/Content/Demo.jsx @@ -49,7 +49,7 @@ export default class Demo extends React.Component { const localizedTitle = meta.title[locale] || meta.title; const localizeIntro = content[locale] || content; const introChildren = props.utils - .toReactComponent(['div'].concat(localizeIntro)); + .toReactComponent(['div'].concat(localizeIntro)); const highlightClass = classNames({ 'highlight-wrapper': true,