From 9b9e5d4140be6c44f19f6322a09100f71a8db753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 19 Jul 2018 18:07:22 +0800 Subject: [PATCH] Revert "eslint check is removed in umi@2" This reverts commit 1f59fe73ce725c1500aec2de6b716e605b84888b. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 99f885f3..fb246c9a 100755 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "scripts": { "precommit": "npm run lint-staged", "presite": "npm run generate-mock && cd functions && npm install", - "start": "umi dev", - "start:no-mock": "cross-env MOCK=none umi dev", - "build": "umi build", + "start": "cross-env ESLINT=none umi dev", + "start:no-mock": "cross-env MOCK=none ESLINT=none umi dev", + "build": "cross-env ESLINT=none umi build", "site": "npm run presite && npm run build && firebase deploy", "analyze": "cross-env ANALYZE=1 umi build", "lint:style": "stylelint \"src/**/*.less\" --syntax less", -- GitLab