Showing
2 changed files
with
41 additions
and
0 deletions
package.json
0 → 100644
1 | +{ | ||
2 | + "name": "yoho-miniapp-mkt", | ||
3 | + "version": "1.0.1", | ||
4 | + "description": "yoho-miniapp-mkt", | ||
5 | + "main": "app.js", | ||
6 | + "scripts": { | ||
7 | + "lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.wxss", | ||
8 | + "lint-js": "eslint --fix --format table --ext .js,.wxs --cache .", | ||
9 | + "lint-all": "npm run -s lint-js && npm run -s lint-css", | ||
10 | + "precommit": "lint-staged" | ||
11 | + }, | ||
12 | + "lint-staged": { | ||
13 | + "*.{js,wxs}": [ | ||
14 | + "eslint --fix --format table", | ||
15 | + "git add" | ||
16 | + ], | ||
17 | + "*.{wxss,scss,css}": [ | ||
18 | + "stylelint --fix --custom-formatter ./node_modules/stylelint-formatter-table", | ||
19 | + "git add" | ||
20 | + ] | ||
21 | + }, | ||
22 | + "repository": { | ||
23 | + "type": "git", | ||
24 | + "url": "git@git.yoho.cn:fe/yoho-miniapp-mkt.git" | ||
25 | + }, | ||
26 | + "keywords": [ | ||
27 | + "yoho" | ||
28 | + ], | ||
29 | + "author": "yoho <fe@yoho.cn> (http://yoho.cn/)", | ||
30 | + "license": "UNLICENSED", | ||
31 | + "devDependencies": { | ||
32 | + "eslint": "^4.16.0", | ||
33 | + "eslint-config-yoho": "^1.0.9", | ||
34 | + "husky": "^0.14.3", | ||
35 | + "lint-staged": "^6.0.1", | ||
36 | + "stylelint": "^8.4.0", | ||
37 | + "stylelint-config-yoho": "^1.2.12", | ||
38 | + "stylelint-formatter-table": "^1.0.4" | ||
39 | + } | ||
40 | +} |
-
Please register or login to post a comment