package.json 1.58 KB
Newer Older
1 2 3
{
  "private": true,
  "scripts": {
陈帅's avatar
陈帅 committed
4
    "dev": "cross-env PAGES_PATH='Workplace/src' umi dev",
5
    "lint": "eslint --ext .js src mock tests && npm run lint:style",
偏右's avatar
偏右 committed
6 7
    "lint-staged": "lint-staged",
    "lint-staged:js": "eslint --ext .js",
陈帅's avatar
陈帅 committed
8 9
    "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
    "lint:style": "stylelint \"src/**/*.less\" --syntax less",
xiaohuoni's avatar
xiaohuoni committed
10
    "prettier": "node ./_scripts/prettier.js"
11
  },
陈帅's avatar
陈帅 committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
  "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"
  },
31
  "devDependencies": {
xiaohuoni's avatar
xiaohuoni committed
32
    "@types/classnames": "^2.2.7",
陈帅's avatar
陈帅 committed
33
    "babel-eslint": "^10.0.1",
陈帅's avatar
陈帅 committed
34
    "eslint": "^5.4.0",
35
    "eslint-config-airbnb": "^17.0.0",
陈帅's avatar
陈帅 committed
36
    "eslint-config-prettier": "^3.0.1",
陈帅's avatar
陈帅 committed
37
    "eslint-plugin-babel": "^5.3.0",
陈帅's avatar
陈帅 committed
38
    "eslint-plugin-compat": "^2.6.2",
taichiyi's avatar
taichiyi committed
39
    "eslint-plugin-import": "^2.14.0",
陈帅's avatar
陈帅 committed
40
    "eslint-plugin-jsx-a11y": "^6.1.2",
nikogu's avatar
nikogu committed
41
    "eslint-plugin-markdown": "^1.0.0-beta.6",
陈帅's avatar
陈帅 committed
42
    "eslint-plugin-react": "^7.11.1",
43
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
44 45
    "husky": "^1.2.0",
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
46
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
47
    "stylelint": "^9.8.0",
陈帅's avatar
陈帅 committed
48
    "stylelint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
49
    "stylelint-config-standard": "^18.0.0",
50
    "umi": "^2.3.0-0",
陈帅's avatar
陈帅 committed
51
    "umi-plugin-block-dev": "^2.0.2",
52 53
    "umi-plugin-react": "^1.3.0-0",
    "umi-request": "^1.0.0"
afc163's avatar
afc163 committed
54
  }
陈帅's avatar
陈帅 committed
55
}