{ "private": true, "scripts": { "dev": "cross-env PAGES_PATH='UserLogin/src' umi dev", "lint": "eslint --ext .js src mock tests && npm run lint:style", "lint-staged": "lint-staged", "lint-staged:js": "eslint --ext .js", "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", "lint:style": "stylelint \"src/**/*.less\" --syntax less", "prettier": "node ./_scripts/prettier.js" }, "husky": { "hooks": { "pre-commit": "npm run lint-staged" } }, "lint-staged": { "**/*.less": "stylelint --syntax less", "x/**/*.{js,jsx}": "npm run lint-staged:js", "x/**/*.{js,ts,tsx,json,jsx,less}": [ "node ./_scripts/lint-prettier.js", "git add" ] }, "dependencies": { "cross-env": "^5.2.0" }, "peerDependencies": { "antd": "^3.16.3" }, "devDependencies": { "@types/classnames": "^2.2.7", "babel-eslint": "^10.0.1", "eslint": "^5.4.0", "eslint-config-airbnb": "^17.0.0", "eslint-config-prettier": "^3.0.1", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-compat": "^2.6.2", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jsx-a11y": "^6.1.2", "eslint-plugin-markdown": "^1.0.0-beta.6", "eslint-plugin-react": "^7.11.1", "glob": "^7.1.3", "husky": "^1.2.0", "lint-staged": "^8.1.0", "prettier": "1.15.2", "stylelint": "^9.8.0", "stylelint-config-prettier": "^4.0.0", "stylelint-config-standard": "^18.0.0", "umi": "^2.3.0-0", "umi-plugin-block-dev": "^2.0.2", "umi-plugin-react": "^1.3.0-0", "umi-request": "^1.0.0" } }