Skip to content

Commit

Permalink
task lint runs on css and js.
Browse files Browse the repository at this point in the history
implement stylelint.
  • Loading branch information
bengarrett committed Apr 9, 2024
1 parent 72a188f commit 0ecc5ea
Show file tree
Hide file tree
Showing 6 changed files with 599 additions and 9 deletions.
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["stylelint-config-standard"] }
2 changes: 2 additions & 0 deletions Taskfile.dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ tasks:
platforms: [linux, darwin, freebsd]
- cmd: gofumpt -w .
- cmd: gci write -s standard -s default .
- cmd: pnpm exec eslint assets/js/*.js
- cmd: pnpm exec stylelint assets/css/*.css
- cmd: golangci-lint run
lint+:
silent: false
Expand Down
12 changes: 6 additions & 6 deletions assets/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

.font-dos {
font-family: font-vga-eight, monospace;
/* font-size: 125%; */
font-style: normal;
font-weight: normal;
line-height: 1;
Expand All @@ -64,7 +63,6 @@

.font-amiga {
font-family: font-topaz-two, font-vga-eight, monospace;
/* font-size: 125%; */
font-style: normal;
font-weight: normal;
line-height: 1;
Expand All @@ -78,7 +76,7 @@

#logo-container {
container-type: inline-size;
container-name: cardContainer;
container-name: cardcontainer;
}

#logo-text {
Expand All @@ -90,17 +88,19 @@
color: #fff;
}

@container cardContainer (width > 575px) {
@container cardcontainer (width > 575px) {
pre {
font-size: 100%;
}
}
@container cardContainer (width < 576px) {

@container cardcontainer (width < 576px) {
pre {
font-size: 0.75rem;
}
}
@container cardContainer (width < 422px) {

@container cardcontainer (width < 422px) {
pre {
font-size: 0.5rem;
}
Expand Down
3 changes: 1 addition & 2 deletions handler/htmx/htmx.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func holder(c echo.Context) error {
defer src.Close()
// Destination
dst, err := os.CreateTemp("tmp", "upload-*.zip")
//dst, err := os.Create(file.Filename)
// dst, err := os.Create(file.Filename)
if err != nil {
return err
}
Expand All @@ -121,7 +121,6 @@ func holder(c echo.Context) error {
return c.HTML(http.StatusOK,
fmt.Sprintf("<p>File %s uploaded successfully with fields.</p><p>%s</p>",
html.EscapeString(input.Filename), html.EscapeString(dst.Name())))

}

// GlobTo returns the path to the template file.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"devDependencies": {
"@eslint/js": "^9.0.0",
"eslint": "^9.0.0",
"globals": "^15.0.0"
"globals": "^15.0.0",
"stylelint": "^16.3.1",
"stylelint-config-standard": "^36.0.0"
}
}
Loading

0 comments on commit 0ecc5ea

Please sign in to comment.