Commit d8ab4925 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

lint: change to eslint-config-umi

parent 3c1cfabf
module.exports = { module.exports = {
parser: 'babel-eslint', extends: ['eslint-config-umi', 'prettier'],
extends: ['airbnb', 'prettier'],
env: { env: {
browser: true, browser: true,
node: true, node: true,
......
...@@ -26,7 +26,7 @@ export default class Center extends PureComponent { ...@@ -26,7 +26,7 @@ export default class Center extends PureComponent {
hoverable hoverable
cover={<img alt={item.title} src={item.cover} />} 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}> <div className={stylesProjects.cardItemContent}>
<span>{moment(item.updatedAt).fromNow()}</span> <span>{moment(item.updatedAt).fromNow()}</span>
<div className={stylesProjects.avatarList}> <div className={stylesProjects.avatarList}>
......
...@@ -74,7 +74,7 @@ export default class CardList extends PureComponent { ...@@ -74,7 +74,7 @@ export default class CardList extends PureComponent {
<Card hoverable className={styles.card} actions={[<a>ζ“δ½œδΈ€</a>, <a>ζ“δ½œδΊŒ</a>]}> <Card hoverable className={styles.card} actions={[<a>ζ“δ½œδΈ€</a>, <a>ζ“δ½œδΊŒ</a>]}>
<Card.Meta <Card.Meta
avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />} avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />}
title={<a href="#">{item.title}</a>} title={<a>{item.title}</a>}
description={ description={
<Ellipsis className={styles.item} lines={3}> <Ellipsis className={styles.item} lines={3}>
{item.description} {item.description}
......
...@@ -70,7 +70,7 @@ export default class CoverCardList extends PureComponent { ...@@ -70,7 +70,7 @@ export default class CoverCardList extends PureComponent {
cover={<img alt={item.title} src={item.cover} />} cover={<img alt={item.title} src={item.cover} />}
> >
<Card.Meta <Card.Meta
title={<a href="#">{item.title}</a>} title={<a>{item.title}</a>}
description={<Ellipsis lines={2}>{item.subDescription}</Ellipsis>} description={<Ellipsis lines={2}>{item.subDescription}</Ellipsis>}
/> />
<div className={styles.cardItemContent}> <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