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

5
.stylelintrc Normal file
View File

@ -0,0 +1,5 @@
extends: stylelint-config-standard
rules:
color-hex-case: upper
selector-list-comma-newline-after: null

763
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,10 @@
"eslint-plugin-node": "5.0.0", "eslint-plugin-node": "5.0.0",
"eslint-plugin-security": "1.3.0", "eslint-plugin-security": "1.3.0",
"htmllint-cli": "0.0.6", "htmllint-cli": "0.0.6",
"npm-run-all": "4.0.2",
"prettier": "1.4.4", "prettier": "1.4.4",
"stylelint": "7.11.0",
"stylelint-config-standard": "16.0.0",
"watchify": "^3.9.0" "watchify": "^3.9.0"
}, },
"engines": { "engines": {
@ -38,8 +41,10 @@
"scripts": { "scripts": {
"dev": "watchify frontend/src/main.js -o public/bundle.js -d | node server/portal_server.js", "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", "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: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", "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" "test": "echo \"Error: no test specified\" && exit 1"
} }

View File

@ -12,6 +12,7 @@ html {
align-content: center; align-content: center;
flex-direction: column; flex-direction: column;
} }
input, select, textarea, button { input, select, textarea, button {
font-family: inherit; font-family: inherit;
} }
@ -34,7 +35,6 @@ input, select, textarea, button {
.upload-window { .upload-window {
border: 1px dashed; border: 1px dashed;
width: 50%;
margin: 0 auto; margin: 0 auto;
width: 470px; width: 470px;
height: 250px; height: 250px;
@ -120,7 +120,7 @@ td {
visibility: hidden; visibility: hidden;
width: 160px; width: 160px;
background-color: #555; background-color: #555;
color: #fff; color: #FFF;
text-align: center; text-align: center;
border-radius: 6px; border-radius: 6px;
padding: 8px 0; padding: 8px 0;
@ -142,7 +142,7 @@ td {
margin-left: -5px; margin-left: -5px;
border-width: 5px; border-width: 5px;
border-style: solid; border-style: solid;
border-color: #555 transparent transparent transparent; border-color: #555 transparent transparent;
} }
.popup .show { .popup .show {
@ -154,7 +154,6 @@ td {
/** share-link **/ /** share-link **/
.share-window { .share-window {
width: 50%;
margin: 0 auto; margin: 0 auto;
width: 470px; width: 470px;
height: 250px; height: 250px;