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