mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
Fix eslint
This commit is contained in:
parent
1830ad8208
commit
a139442307
@ -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 = {';
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user