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