Browse Source

fix #4311 lint error in windows

pull/4329/head
lonwern 7 years ago
committed by 陈帅
parent
commit
00dba83199
  1. 4
      create-umi/package.json
  2. 4
      package.json

4
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:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix",
"lint:js": "eslint --ext .js src tests", "lint:js": "eslint --ext .js src tests",
"lint:prettier": "check-prettier lint", "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", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": " check-prettier write", "prettier": " check-prettier write",
"start": "umi dev", "start": "umi dev",
@ -21,7 +21,7 @@
"test": "umi test", "test": "umi test",
"test:all": "node ./tests/run-tests.js", "test:all": "node ./tests/run-tests.js",
"test:component": "umi test ./src/components", "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" "fetch:blocks": "node ./scripts/fetch-blocks.js"
}, },
"husky": { "husky": {

4
package.json

@ -24,7 +24,7 @@
"lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix", "lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix",
"lint:js": "eslint --ext .js src tests", "lint:js": "eslint --ext .js src tests",
"lint:prettier": "check-prettier lint", "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", "lint:ts": "tslint -p . -c tslint.yml",
"prettier": " check-prettier write", "prettier": " check-prettier write",
"site": "npm run fetch:blocks && npm run functions:build && umi build", "site": "npm run fetch:blocks && npm run functions:build && umi build",
@ -33,7 +33,7 @@
"test": "umi test", "test": "umi test",
"test:all": "node ./tests/run-tests.js", "test:all": "node ./tests/run-tests.js",
"test:component": "umi test ./src/components", "test:component": "umi test ./src/components",
"tslint:fix": "tslint --fix 'src/**/*.ts*'" "tslint:fix": "tslint --fix \"src/**/*.ts*\""
}, },
"husky": { "husky": {
"hooks": { "hooks": {

Loading…
Cancel
Save