Authored by 毕凯

增加 stylelint 配置

1 node_modules/ 1 node_modules/
2 .eslintcache 2 .eslintcache
  3 +.jshintignore
  4 +.jshintrc
  1 +{
  2 + "extends": "stylelint-config-yoho"
  3 +}
@@ -4,7 +4,8 @@ @@ -4,7 +4,8 @@
4 "private": true, 4 "private": true,
5 "scripts": { 5 "scripts": {
6 "start": "node ./bin/www", 6 "start": "node ./bin/www",
7 - "lint": "eslint -c .eslintrc --cache public/**/*.js" 7 + "lint": "eslint -c .eslintrc --cache public/**/*.js",
  8 + "validate": "npm ls"
8 }, 9 },
9 "dependencies": { 10 "dependencies": {
10 "body-parser": "~1.13.2", 11 "body-parser": "~1.13.2",
@@ -16,9 +17,12 @@ @@ -16,9 +17,12 @@
16 "request-promise": "^2.0.1", 17 "request-promise": "^2.0.1",
17 "serve-favicon": "^2.3.0" 18 "serve-favicon": "^2.3.0"
18 }, 19 },
19 - "pre-commit": ["lint"], 20 + "pre-commit": [
  21 + "lint"
  22 + ],
20 "devDependencies": { 23 "devDependencies": {
21 "eslint-config-yoho": "^0.1.1", 24 "eslint-config-yoho": "^0.1.1",
22 - "precommit-hook": "^3.0.0" 25 + "precommit-hook": "^3.0.0",
  26 + "stylelint-config-yoho": "^1.1.0"
23 } 27 }
24 } 28 }