From 8bc6b29ce28c5d8054772d16e5bcdd9ad3e16548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 16 Oct 2019 17:22:08 +0800 Subject: [PATCH] eslint use extends --- .eslintrc.js | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 929f3ee8..7ca3d282 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,5 @@ -const { strictEslint } = require('@umijs/fabric'); - module.exports = { - ...strictEslint, + extends: [require.resolve('@umijs/fabric/dist/eslint')], globals: { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, page: true, diff --git a/package.json b/package.json index 8ef75818..c0f56b46 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "@types/react": "^16.8.19", "@types/react-document-title": "^2.0.3", "@types/react-dom": "^16.8.4", - "@umijs/fabric": "^1.1.0", + "@umijs/fabric": "^1.2.0", "chalk": "^2.4.2", "check-prettier": "^1.0.3", "cross-env": "^6.0.0",