Add stylelint and fix a few errors

This commit is contained in:
Peter deHaan 2017-06-09 10:49:53 -07:00
parent 1dbda38995
commit 45a5e420ce
No known key found for this signature in database
GPG key ID: F0FC6C01C6305097
4 changed files with 760 additions and 22 deletions

View file

@ -27,7 +27,10 @@
"eslint-plugin-node": "5.0.0",
"eslint-plugin-security": "1.3.0",
"htmllint-cli": "0.0.6",
"npm-run-all": "4.0.2",
"prettier": "1.4.4",
"stylelint": "7.11.0",
"stylelint-config-standard": "16.0.0",
"watchify": "^3.9.0"
},
"engines": {
@ -38,8 +41,10 @@
"scripts": {
"dev": "watchify frontend/src/main.js -o public/bundle.js -d | node server/portal_server.js",
"format": "prettier 'frontend/src/*.js' 'server/*.js' 'public/*.css' --single-quote --write",
"lint": "eslint .",
"lint": "npm-run-all lint:*",
"lint:css": "stylelint 'public/*.css'",
"lint:html": "htmllint 'views/*.handlebars'",
"lint:js": "eslint .",
"start": "watchify frontend/src/main.js -o public/bundle.js -d | cross-env NODE_ENV=production node server/portal_server.js",
"test": "echo \"Error: no test specified\" && exit 1"
}