From 00dba83199bf7693283dd25ae6c3a8fd2a4b0251 Mon Sep 17 00:00:00 2001 From: lonwern Date: Thu, 30 May 2019 17:47:32 +0800 Subject: [PATCH] fix #4311 lint error in windows --- create-umi/package.json | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/create-umi/package.json b/create-umi/package.json index d10870aa..c526b4ed 100644 --- a/create-umi/package.json +++ b/create-umi/package.json @@ -13,7 +13,7 @@ "lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix", "lint:js": "eslint --ext .js src tests", "lint:prettier": "check-prettier lint", - "lint:style": "stylelint --fix 'src/**/*.less' --syntax less", + "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less", "lint:ts": "tslint -p . -c tslint.yml", "prettier": " check-prettier write", "start": "umi dev", @@ -21,7 +21,7 @@ "test": "umi test", "test:all": "node ./tests/run-tests.js", "test:component": "umi test ./src/components", - "tslint:fix": "tslint --fix 'src/**/*.ts*'", + "tslint:fix": "tslint --fix \"src/**/*.ts*\"", "fetch:blocks": "node ./scripts/fetch-blocks.js" }, "husky": { diff --git a/package.json b/package.json index b1eedcd4..c9f64282 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix", "lint:js": "eslint --ext .js src tests", "lint:prettier": "check-prettier lint", - "lint:style": "stylelint --fix 'src/**/*.less' --syntax less", + "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less", "lint:ts": "tslint -p . -c tslint.yml", "prettier": " check-prettier write", "site": "npm run fetch:blocks && npm run functions:build && umi build", @@ -33,7 +33,7 @@ "test": "umi test", "test:all": "node ./tests/run-tests.js", "test:component": "umi test ./src/components", - "tslint:fix": "tslint --fix 'src/**/*.ts*'" + "tslint:fix": "tslint --fix \"src/**/*.ts*\"" }, "husky": { "hooks": {