package.json 1.8 KB
Newer Older
1 2 3
{
  "private": true,
  "scripts": {
陈帅's avatar
陈帅 committed
4
    "dev": "cross-env PAGES_PATH='AccountCenter/src' umi dev",
陈帅's avatar
陈帅 committed
5
    "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier",
偏右's avatar
偏右 committed
6
    "lint-staged": "lint-staged",
陈帅's avatar
陈帅 committed
7
    "lint-staged:ts": "tslint",
陈帅's avatar
陈帅 committed
8
    "lint:fix": "npm run lint:style",
陈帅's avatar
new doc  
陈帅 committed
9
    "lint:prettier": "check-prettier write",
陈帅's avatar
陈帅 committed
10 11 12
    "lint:style": "stylelint --syntax less --fix **/**.less ",
    "lint:ts": "tslint -p . -c tslint.yml",
    "prettier": "node ./_scripts/prettier.js",
陈帅's avatar
陈帅 committed
13
    "tslint": "npm run tslint:fix"
14
  },
陈帅's avatar
陈帅 committed
15 16 17 18 19 20 21
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  },
  "lint-staged": {
    "**/*.less": "stylelint --syntax less",
陈帅's avatar
陈帅 committed
22
    "**/*.{js,ts,tsx,json,jsx,less}": [
陈帅's avatar
陈帅 committed
23
      "node ./_scripts/lint-prettier.js",
陈帅's avatar
陈帅 committed
24
      "git add"
陈帅's avatar
陈帅 committed
25 26
    ],
    "**/*.{ts,tsx}": "npm run lint-staged:ts"
陈帅's avatar
陈帅 committed
27 28 29 30
  },
  "dependencies": {
    "cross-env": "^5.2.0"
  },
31
  "devDependencies": {
xiaohuoni's avatar
xiaohuoni committed
32
    "@types/classnames": "^2.2.7",
陈帅's avatar
陈帅 committed
33
    "@types/numeral": "^0.0.25",
陈帅's avatar
陈帅 committed
34
    "babel-eslint": "^10.0.1",
陈帅's avatar
new doc  
陈帅 committed
35
    "check-prettier": "^1.0.3",
36
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
37
    "husky": "^2.2.0",
陈帅's avatar
陈帅 committed
38
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
39
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
40 41 42 43 44 45 46 47 48 49 50 51 52
    "stylelint": "^10.0.1",
    "stylelint-config-css-modules": "^1.4.0",
    "stylelint-config-prettier": "^5.1.0",
    "stylelint-config-rational-order": "^0.1.2",
    "stylelint-config-standard": "^18.3.0",
    "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
    "stylelint-order": "^3.0.0",
    "tslint": "^5.12.1",
    "tslint-config-prettier": "^1.17.0",
    "tslint-eslint-rules": "^5.4.0",
    "tslint-react": "^3.6.0",
    "typescript": "^3.4.5",
    "umi": "^2.6.17",
陈帅's avatar
陈帅 committed
53
    "umi-plugin-block-dev": "^2.0.2",
陈帅's avatar
陈帅 committed
54
    "umi-plugin-react": "^1.7.6",
55
    "umi-request": "^1.0.0"
陈帅's avatar
陈帅 committed
56 57 58
  },
  "peerDependencies": {
    "antd": "^3.17.0"
陈帅's avatar
陈帅 committed
59 60 61 62 63 64
  },
  "checkFiles": [
    "**/*.ts*",
    "**/*.less",
    "**/*.md"
  ]
陈帅's avatar
陈帅 committed
65
}