Authored by ccbikai

代码检查优化

1 **/bundle/**/*.js 1 **/bundle/**/*.js
2 **/dist/**/*.js 2 **/dist/**/*.js
  3 +coverage
@@ -115,7 +115,7 @@ const convertActicityData = (data) => { @@ -115,7 +115,7 @@ const convertActicityData = (data) => {
115 const getHomeActivity = (data) => { 115 const getHomeActivity = (data) => {
116 var params = { 116 var params = {
117 method: 'app.outlets.activityGet', 117 method: 'app.outlets.activityGet',
118 - platform: 2, 118 + platform: 2
119 }; 119 };
120 120
121 return api.get('', sign.apiSign(_.assign(params, data))).then(res => { 121 return api.get('', sign.apiSign(_.assign(params, data))).then(res => {
@@ -9,14 +9,14 @@ @@ -9,14 +9,14 @@
9 }, 9 },
10 "scripts": { 10 "scripts": {
11 "start": "node app.js", 11 "start": "node app.js",
12 - "dev": "node_modules/.bin/nodemon -e js,hbs -i public/ app.js", 12 + "dev": "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_modules/.bin/nodemon -e js,hbs -i public/ app.js",  
15 - "lint-js": "./node_modules/.bin/eslint -c .eslintrc --cache --fix .",  
16 - "lint-css": "./node_modules/.bin/stylelint --config .stylelintrc public/scss/**/*.css", 14 + "debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js",
  15 + "lint-js": "eslint -c .eslintrc --cache --fix .",
  16 + "lint-css": "stylelint --config .stylelintrc public/scss/**/*.css",
17 "precommit": "node lint.js", 17 "precommit": "node lint.js",
18 - "test": "NODE_ENV=test ./node_modules/.bin/nyc ./node_modules/.bin/ava",  
19 - "posttest": "./node_modules/.bin/nyc report --reporter=html" 18 + "test": "NODE_ENV=test nyc ./node_modules/.bin/ava",
  19 + "posttest": "nyc report --reporter=html"
20 }, 20 },
21 "ava": { 21 "ava": {
22 "tap": true, 22 "tap": true,
@@ -78,7 +78,7 @@ if ($('.outlet-category-nav').length > 0) { @@ -78,7 +78,7 @@ if ($('.outlet-category-nav').length > 0) {
78 if ($('.back-ground-white').length > 10) { 78 if ($('.back-ground-white').length > 10) {
79 $('.more-activity').show(); 79 $('.more-activity').show();
80 $('.back-ground-white').each(function(index, e) { 80 $('.back-ground-white').each(function(index, e) {
81 - if(index > 9) { 81 + if (index > 9) {
82 $(e).hide(); 82 $(e).hide();
83 } 83 }
84 }); 84 });