Authored by ccbikai

升级 stylelint

1 { 1 {
2 - "extends": "stylelint-config-yoho" 2 + "extends": "stylelint-config-yoho",
  3 + "processors": ["stylelint-processor-html"]
3 } 4 }
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 "debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js", 14 "debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js",
15 "lint-js": "eslint -c .eslintrc --cache --fix .", 15 "lint-js": "eslint -c .eslintrc --cache --fix .",
16 "lint-css": "stylelint --config .stylelintrc public/scss/**/*.css", 16 "lint-css": "stylelint --config .stylelintrc public/scss/**/*.css",
17 - "lint-vue": "stylelint --extract --config .stylelintrc public/vue/**/*.vue || eslint -c .eslintrc --cache --fix public/vue/**/*.vue", 17 + "lint-vue": "stylelint --extract --config .stylelintrc public/vue/**/*.vue",
18 "precommit": "node lint.js" 18 "precommit": "node lint.js"
19 }, 19 },
20 "license": "MIT", 20 "license": "MIT",
@@ -78,8 +78,9 @@ @@ -78,8 +78,9 @@
78 "precss": "^1.4.0", 78 "precss": "^1.4.0",
79 "shelljs": "^0.7.3", 79 "shelljs": "^0.7.3",
80 "style-loader": "^0.13.1", 80 "style-loader": "^0.13.1",
81 - "stylelint": "^6.9.0",  
82 - "stylelint-config-yoho": "1.2.5", 81 + "stylelint": "^7.1.0",
  82 + "stylelint-config-yoho": "^1.2.6",
  83 + "stylelint-processor-html": "^1.0.0",
83 "vue": "1.0.26", 84 "vue": "1.0.26",
84 "vue-infinite-scroll": "0.2.3", 85 "vue-infinite-scroll": "0.2.3",
85 "vue-lazyload": "0.4.3", 86 "vue-lazyload": "0.4.3",