From d8ab4925c2a02cd5bac96ef942ad40f5f0bdb619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 13 Jul 2018 12:13:10 +0800 Subject: [PATCH] lint: change to eslint-config-umi --- .eslintrc.js | 3 +-- package.json | 4 +++- src/pages/Account/Center/Projects.js | 2 +- src/pages/List/CardList.js | 2 +- src/pages/List/Projects.js | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index c20a185d..e24ea21f 100755 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,5 @@ module.exports = { - parser: 'babel-eslint', - extends: ['airbnb', 'prettier'], + extends: ['eslint-config-umi', 'prettier'], env: { browser: true, node: true, diff --git a/package.json b/package.json index c870f380..e7940b3e 100755 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "bizcharts-plugin-slider": "^2.0.3", "classnames": "^2.2.6", "enquire-js": "^0.2.1", + "eslint-config-umi": "^0.1.4", + "eslint-plugin-flowtype": "2", "lodash": "^4.17.4", "lodash-decorators": "^6.0.0", "lodash.isequal": "^4.5.0", @@ -47,7 +49,7 @@ "rollup-plugin-json": "^3.0.0", "setprototypeof": "^1.1.0", "umi-plugin-locale": "^1.0.1", - "url-polyfill": "^1.0.10" + "url-polyfill": "^1.0.13" }, "devDependencies": { "@babel/polyfill": "^7.0.0-beta.36", diff --git a/src/pages/Account/Center/Projects.js b/src/pages/Account/Center/Projects.js index 42ce9774..7eb91be8 100644 --- a/src/pages/Account/Center/Projects.js +++ b/src/pages/Account/Center/Projects.js @@ -26,7 +26,7 @@ export default class Center extends PureComponent { hoverable cover={{item.title}} > - {item.title}} description={item.subDescription} /> + {item.title}} description={item.subDescription} />
{moment(item.updatedAt).fromNow()}
diff --git a/src/pages/List/CardList.js b/src/pages/List/CardList.js index 41e8a84c..a35417d2 100644 --- a/src/pages/List/CardList.js +++ b/src/pages/List/CardList.js @@ -74,7 +74,7 @@ export default class CardList extends PureComponent { 操作一, 操作二]}> } - title={{item.title}} + title={{item.title}} description={ {item.description} diff --git a/src/pages/List/Projects.js b/src/pages/List/Projects.js index 84cce38a..4775640a 100644 --- a/src/pages/List/Projects.js +++ b/src/pages/List/Projects.js @@ -70,7 +70,7 @@ export default class CoverCardList extends PureComponent { cover={{item.title}} > {item.title}} + title={{item.title}} description={{item.subDescription}} />
-- GitLab