mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 13:56:22 -04:00
add various linters
This commit is contained in:
parent
240abf85a5
commit
8cfb242246
@ -8,6 +8,16 @@ body#home {
|
|||||||
max-width: 1070px;
|
max-width: 1070px;
|
||||||
padding: 50px 65px;
|
padding: 50px 65px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
// Loop through $colors-home -- the main reason I switched to SASS :)
|
||||||
|
@each $id, $color in $colors-home {
|
||||||
|
&##{$id} {
|
||||||
|
color: $color;
|
||||||
|
background-image: underline-hack($color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
@ -47,16 +57,6 @@ body#home {
|
|||||||
height: 160px;
|
height: 160px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
// Loop through $colors-home -- the main reason I switched to SASS :)
|
|
||||||
@each $id, $color in $colors-home {
|
|
||||||
&##{$id} {
|
|
||||||
color: $color;
|
|
||||||
background-image: underline-hack($color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// easter egg emoji cursor
|
// easter egg emoji cursor
|
||||||
a#birthday {
|
a#birthday {
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -94,22 +94,6 @@ body#home {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&#panda {
|
|
||||||
width: 20%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 1.25em;
|
|
||||||
line-height: 1.4; // magic numbers don't judge
|
|
||||||
|
|
||||||
a {
|
|
||||||
display: inline-block;
|
|
||||||
transition: transform 0.2s ease-in-out;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: scale(1.6) rotate(10deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&#info {
|
&#info {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -125,6 +109,22 @@ body#home {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#panda {
|
||||||
|
width: 20%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.25em;
|
||||||
|
line-height: 1.4; // magic numbers don't judge
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
transition: transform 0.2s ease-in-out;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: scale(1.6) rotate(10deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ body#notes {
|
|||||||
svg {
|
svg {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
span#name {
|
span#name {
|
||||||
@ -78,6 +77,7 @@ body#notes {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
@ -122,20 +122,6 @@ body#notes {
|
|||||||
|
|
||||||
main {
|
main {
|
||||||
&#single article div {
|
&#single article div {
|
||||||
&#info {
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin: 0.3em 0;
|
|
||||||
font-size: 2em;
|
|
||||||
line-height: 1.4;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&#meta {
|
&#meta {
|
||||||
color: $color-light;
|
color: $color-light;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
@ -157,6 +143,20 @@ body#notes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#info {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0.3em 0;
|
||||||
|
font-size: 2em;
|
||||||
|
line-height: 1.4;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&#content {
|
&#content {
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
|
|
||||||
@ -275,12 +275,14 @@ body#notes {
|
|||||||
&#archive section.year {
|
&#archive section.year {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
li {
|
li {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@ -296,15 +298,18 @@ body#notes {
|
|||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 1.8em;
|
margin-bottom: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
+ li {
|
+ li {
|
||||||
margin-top: 1.3em;
|
margin-top: 1.3em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* stylelint-disable-next-line no-descending-specificity */
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.8em;
|
font-size: 1.8em;
|
||||||
}
|
}
|
||||||
|
20
package.json
20
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "jarv.is",
|
"name": "jarv.is",
|
||||||
"version": "1.0.0",
|
"version": "1.3.37",
|
||||||
"homepage": "https://jarv.is/",
|
"homepage": "https://jarv.is/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
@ -10,8 +10,8 @@
|
|||||||
"url": "https://github.com/jakejarvis"
|
"url": "https://github.com/jakejarvis"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run hugo:build && npm run optimize",
|
"build": "rm -rf public resources && npm run hugo:build && npm run optimize",
|
||||||
"build:preview": "npm run hugo:build-dev && npm run optimize",
|
"build:preview": "npm run hugo:build-dev",
|
||||||
"hugo:build": "hugo --gc --cleanDestinationDir --verbose",
|
"hugo:build": "hugo --gc --cleanDestinationDir --verbose",
|
||||||
"hugo:build-dev": "HUGO_ENV=development hugo -e development -b $DEPLOY_PRIME_URL --gc --cleanDestinationDir --buildDrafts --buildFuture --verbose",
|
"hugo:build-dev": "HUGO_ENV=development hugo -e development -b $DEPLOY_PRIME_URL --gc --cleanDestinationDir --buildDrafts --buildFuture --verbose",
|
||||||
"hugo:serve": "hugo server --buildDrafts --buildFuture --port 1313 --bind=0.0.0.0 --verbose",
|
"hugo:serve": "hugo server --buildDrafts --buildFuture --port 1313 --bind=0.0.0.0 --verbose",
|
||||||
@ -19,6 +19,8 @@
|
|||||||
"netlify:serve": "netlify dev --command 'npm run hugo:serve'",
|
"netlify:serve": "netlify dev --command 'npm run hugo:serve'",
|
||||||
"optimize": "npm run optimize:img",
|
"optimize": "npm run optimize:img",
|
||||||
"optimize:img": "find public/ -type d -exec imagemin {}/* --plugin=jpegoptim --plugin=pngquant --plugin=optipng --plugin=svgo --plugin=gifsicle --out-dir={} \\;",
|
"optimize:img": "find public/ -type d -exec imagemin {}/* --plugin=jpegoptim --plugin=pngquant --plugin=optipng --plugin=svgo --plugin=gifsicle --out-dir={} \\;",
|
||||||
|
"lint:markdown": "markdownlint content/notes/**/*.md",
|
||||||
|
"lint:sass": "stylelint assets/sass/**/* --syntax scss",
|
||||||
"test": "hugo version; hugo env"
|
"test": "hugo version; hugo env"
|
||||||
},
|
},
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
@ -29,10 +31,20 @@
|
|||||||
"imagemin-optipng": "^7.1.0",
|
"imagemin-optipng": "^7.1.0",
|
||||||
"imagemin-pngquant": "^8.0.0",
|
"imagemin-pngquant": "^8.0.0",
|
||||||
"imagemin-svgo": "^7.0.0",
|
"imagemin-svgo": "^7.0.0",
|
||||||
"netlify-cli": "^2.21.0"
|
"markdownlint-cli": "~0.19.0",
|
||||||
|
"netlify-cli": "^2.21.0",
|
||||||
|
"stylelint": "~12.0.0",
|
||||||
|
"stylelint-config-recommended-scss": "~4.1.0",
|
||||||
|
"stylelint-scss": "~3.13.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/jakejarvis/jarv.is.git"
|
"url": "git+https://github.com/jakejarvis/jarv.is.git"
|
||||||
|
},
|
||||||
|
"stylelint": {
|
||||||
|
"extends": "stylelint-config-recommended-scss",
|
||||||
|
"rules": {
|
||||||
|
"selector-type-no-unknown": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user