Authored by 毕凯

增加 stylelint 配置

node_modules/
.eslintcache
.jshintignore
.jshintrc
... ...
{
"extends": "stylelint-config-yoho"
}
... ...
... ... @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"start": "node ./bin/www",
"lint": "eslint -c .eslintrc --cache public/**/*.js"
"lint": "eslint -c .eslintrc --cache public/**/*.js",
"validate": "npm ls"
},
"dependencies": {
"body-parser": "~1.13.2",
... ... @@ -16,9 +17,12 @@
"request-promise": "^2.0.1",
"serve-favicon": "^2.3.0"
},
"pre-commit": ["lint"],
"pre-commit": [
"lint"
],
"devDependencies": {
"eslint-config-yoho": "^0.1.1",
"precommit-hook": "^3.0.0"
"precommit-hook": "^3.0.0",
"stylelint-config-yoho": "^1.1.0"
}
}
... ...