package.json 1.41 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": {
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 32 33
    "umi": "^2.3.0-0",
    "umi-plugin-block-dev": "^1.0.0",
    "umi-plugin-react": "^1.3.0-0"
34
  },
偏右's avatar
偏右 committed
35
  "lint-staged": {
36 37
    "x/**/*.{js,ts,tsx,json,jsx,less}": [
      "node ./_scripts/lint-prettier.js",
jim's avatar
jim committed
38 39
      "git add"
    ],
40
    "x/**/*.{js,jsx}": "npm run lint-staged:js",
afc163's avatar
afc163 committed
41
    "**/*.less": "stylelint --syntax less"
afc163's avatar
afc163 committed
42
  },
afc163's avatar
afc163 committed
43 44 45 46 47
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint-staged"
    }
  }
48
}