Authored by 毕凯

npm 脚本可以检查所有文件

@@ -31,7 +31,7 @@ const packageSort = argument => { @@ -31,7 +31,7 @@ const packageSort = argument => {
31 } 31 }
32 32
33 return newObj; 33 return newObj;
34 -} 34 +};
35 35
36 /** 36 /**
37 * 生成签名 37 * 生成签名
@@ -46,7 +46,7 @@ const makeSign = argument => { @@ -46,7 +46,7 @@ const makeSign = argument => {
46 }); 46 });
47 47
48 return md5(qs.join('&')).toLowerCase(); 48 return md5(qs.join('&')).toLowerCase();
49 -} 49 +};
50 50
51 // 生成API签名,调用后端接口的时候有私钥校验 51 // 生成API签名,调用后端接口的时候有私钥校验
52 exports.apiSign = (params) => { 52 exports.apiSign = (params) => {
@@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
12 "dev": "node_modules/.bin/nodemon -e js,hbs -i public/ app.js", 12 "dev": "node_modules/.bin/nodemon -e js,hbs -i public/ app.js",
13 "online": "NODE_ENV=\"production\" node app.js", 13 "online": "NODE_ENV=\"production\" node app.js",
14 "debug": "DEBUG=\"express:*\" node app.js", 14 "debug": "DEBUG=\"express:*\" node app.js",
  15 + "lint-js": "./node_modules/.bin/eslint -c .eslintrc --cache --fix .",
  16 + "lint-css": "./node_modules/.bin/stylelint --config .stylelintrc public/**/*.css",
15 "precommit": "node lint.js" 17 "precommit": "node lint.js"
16 }, 18 },
17 "license": "MIT", 19 "license": "MIT",