package.json 1.38 KB
Newer Older
1 2 3
{
  "private": true,
  "scripts": {
愚道's avatar
愚道 committed
4
    "dev": "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",
10
    "prettier": "node ./_scripts/prettier.js"
11 12
  },
  "devDependencies": {
陈帅's avatar
陈帅 committed
13
    "babel-eslint": "^10.0.1",
陈帅's avatar
陈帅 committed
14
    "eslint": "^5.4.0",
15
    "eslint-config-airbnb": "^17.0.0",
陈帅's avatar
陈帅 committed
16
    "eslint-config-prettier": "^3.0.1",
陈帅's avatar
陈帅 committed
17
    "eslint-plugin-babel": "^5.3.0",
陈帅's avatar
陈帅 committed
18
    "eslint-plugin-compat": "^2.6.2",
taichiyi's avatar
taichiyi committed
19
    "eslint-plugin-import": "^2.14.0",
陈帅's avatar
陈帅 committed
20
    "eslint-plugin-jsx-a11y": "^6.1.2",
nikogu's avatar
nikogu committed
21
    "eslint-plugin-markdown": "^1.0.0-beta.6",
陈帅's avatar
陈帅 committed
22
    "eslint-plugin-react": "^7.11.1",
23
    "glob": "^7.1.3",
陈帅's avatar
陈帅 committed
24 25
    "husky": "^1.2.0",
    "lint-staged": "^8.1.0",
陈帅's avatar
陈帅 committed
26
    "prettier": "1.15.2",
陈帅's avatar
陈帅 committed
27
    "stylelint": "^9.8.0",
陈帅's avatar
陈帅 committed
28
    "stylelint-config-prettier": "^4.0.0",
陈帅's avatar
陈帅 committed
29
    "stylelint-config-standard": "^18.0.0",
30 31 32
    "umi": "^2.3.0-0",
    "umi-plugin-block-dev": "^1.0.0",
    "umi-plugin-react": "^1.3.0-0"
33
  },
偏右's avatar
偏右 committed
34
  "lint-staged": {
35 36
    "x/**/*.{js,ts,tsx,json,jsx,less}": [
      "node ./_scripts/lint-prettier.js",
jim's avatar
jim committed
37 38
      "git add"
    ],
39
    "x/**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
40
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
41
  },
afc163's avatar
afc163 committed
42 43 44 45 46
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
47
}