Authored by ccbikai(👎🏻🍜)

Merge branch 'release/5.5.1' into gray

  1 +const shelljs = require('shelljs');
  2 +const path = require('path');
  3 +
  4 +const ext = process.platform === 'win32' ? '.cmd' : ''; // Windows 平台需要加后缀
  5 +const lintPath = {
  6 + js: path.resolve('./node_modules/.bin/eslint'),
  7 + css: path.resolve('./node_modules/.bin/stylelint')
  8 +};
  9 +
  10 +const jsfiles = ['.', 'public/vue'];
  11 +const cssfiles = ['public/scss/**/*.css', 'public/vue/**/*.vue'];
  12 +
  13 +jsfiles.forEach(function(filepath) {
  14 + shelljs.exec(`${lintPath.js}${ext} -f table -c .eslintrc --cache ${filepath}`);
  15 +});
  16 +
  17 +cssfiles.forEach(function(filepath) {
  18 + shelljs.exec(`${lintPath.css}${ext} --syntax scss --config .stylelintrc --custom-formatter ./node_modules/stylelint-formatter-table/index.js '${filepath}'`); // eslint-disable-line
  19 +});
@@ -17,7 +17,8 @@ @@ -17,7 +17,8 @@
17 "lint-css": "stylelint --syntax scss --config .stylelintrc 'public/scss/**/*.css'", 17 "lint-css": "stylelint --syntax scss --config .stylelintrc 'public/scss/**/*.css'",
18 "lint-vue-js": "eslint -c .eslintrc --cache public/vue", 18 "lint-vue-js": "eslint -c .eslintrc --cache public/vue",
19 "lint-vue-css": "stylelint --syntax scss --extract --config .stylelintrc 'public/scss/**/*.vue'", 19 "lint-vue-css": "stylelint --syntax scss --extract --config .stylelintrc 'public/scss/**/*.vue'",
20 - "precommit": "node lint.js" 20 + "lint-all": "node lint-all.js",
  21 + "precommit": "node lint-commit.js"
21 }, 22 },
22 "license": "MIT", 23 "license": "MIT",
23 "dependencies": { 24 "dependencies": {
@@ -86,6 +87,7 @@ @@ -86,6 +87,7 @@
86 "style-loader": "^0.16.0", 87 "style-loader": "^0.16.0",
87 "stylelint": "^7.9.0", 88 "stylelint": "^7.9.0",
88 "stylelint-config-yoho": "^1.2.8", 89 "stylelint-config-yoho": "^1.2.8",
  90 + "stylelint-formatter-table": "^1.0.2",
89 "stylelint-processor-html": "^1.0.0", 91 "stylelint-processor-html": "^1.0.0",
90 "stylelint-webpack-plugin": "^0.7.0", 92 "stylelint-webpack-plugin": "^0.7.0",
91 "vue": "^2.1.10", 93 "vue": "^2.1.10",
@@ -8,22 +8,6 @@ @@ -8,22 +8,6 @@
8 @import "jit-detail"; 8 @import "jit-detail";
9 @import "pay-failure"; 9 @import "pay-failure";
10 10
11 -.icon-checkbox:before {  
12 - content: "\e61c";  
13 -}  
14 -  
15 -.icon-cb-checked:before {  
16 - content: "\e61d";  
17 -}  
18 -  
19 -.icon-radio:before {  
20 - content: "\e647";  
21 -}  
22 -  
23 -.icon-cb-radio:before {  
24 - content: "\e646";  
25 -}  
26 -  
27 .shopping-cart-page { 11 .shopping-cart-page {
28 margin-bottom: 120px; 12 margin-bottom: 120px;
29 overflow-x: hidden; 13 overflow-x: hidden;
@@ -197,3 +197,19 @@ button { @@ -197,3 +197,19 @@ button {
197 } 197 }
198 } 198 }
199 } 199 }
  200 +
  201 +.icon-checkbox:before {
  202 + content: "\e61c";
  203 +}
  204 +
  205 +.icon-cb-checked:before {
  206 + content: "\e61d";
  207 +}
  208 +
  209 +.icon-radio:before {
  210 + content: "\e647";
  211 +}
  212 +
  213 +.icon-cb-radio:before {
  214 + content: "\e646";
  215 +}