package.json 1.08 KB
{
  "name": "yoho-miniapp-mkt",
  "version": "1.0.1",
  "description": "yoho-miniapp-mkt",
  "main": "app.js",
  "scripts": {
    "lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.wxss",
    "lint-js": "eslint --fix --format table --ext .js,.wxs --cache .",
    "lint-all": "npm run -s lint-js && npm run -s lint-css",
    "precommit": "lint-staged"
  },
  "lint-staged": {
    "*.{js,wxs}": [
      "eslint --fix --format table",
      "git add"
    ],
    "*.{wxss,scss,css}": [
      "stylelint --fix --custom-formatter ./node_modules/stylelint-formatter-table",
      "git add"
    ]
  },
  "repository": {
    "type": "git",
    "url": "git@git.yoho.cn:fe/yoho-miniapp-mkt.git"
  },
  "keywords": [
    "yoho"
  ],
  "author": "yoho <fe@yoho.cn> (http://yoho.cn/)",
  "license": "UNLICENSED",
  "devDependencies": {
    "eslint": "^4.16.0",
    "eslint-config-yoho": "^1.0.9",
    "husky": "^0.14.3",
    "lint-staged": "^6.0.1",
    "stylelint": "^8.4.0",
    "stylelint-config-yoho": "^1.2.12",
    "stylelint-formatter-table": "^1.0.4"
  }
}