Commit d8ab4925 authored by 陈帅's avatar 陈帅

lint: change to eslint-config-umi

parent 3c1cfabf
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'prettier'],
extends: ['eslint-config-umi', 'prettier'],
env: {
browser: true,
node: true,
......
......@@ -26,7 +26,7 @@ export default class Center extends PureComponent {
hoverable
cover={<img alt={item.title} src={item.cover} />}
>
<Card.Meta title={<a href="#">{item.title}</a>} description={item.subDescription} />
<Card.Meta title={<a>{item.title}</a>} description={item.subDescription} />
<div className={stylesProjects.cardItemContent}>
<span>{moment(item.updatedAt).fromNow()}</span>
<div className={stylesProjects.avatarList}>
......
......@@ -74,7 +74,7 @@ export default class CardList extends PureComponent {
<Card hoverable className={styles.card} actions={[<a>操作一</a>, <a>操作二</a>]}>
<Card.Meta
avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />}
title={<a href="#">{item.title}</a>}
title={<a>{item.title}</a>}
description={
<Ellipsis className={styles.item} lines={3}>
{item.description}
......
......@@ -70,7 +70,7 @@ export default class CoverCardList extends PureComponent {
cover={<img alt={item.title} src={item.cover} />}
>
<Card.Meta
title={<a href="#">{item.title}</a>}
title={<a>{item.title}</a>}
description={<Ellipsis lines={2}>{item.subDescription}</Ellipsis>}
/>
<div className={styles.cardItemContent}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment