Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: latest
env:
GOOS: js
GOARCH: wasm

lint-js:
timeout-minutes: 3
Expand All @@ -81,7 +84,5 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run linting
run: biome ci --diagnostic-level=warn
17 changes: 3 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
run:
skip-dirs:
issues:
exclude-dirs:
- lib
skip-files:
exclude-files:
- xxhash.go

issues:
exclude-rules:
- path: token.go
linters:
Expand All @@ -13,15 +11,6 @@ issues:
linters:
- errcheck

- linters:
- typecheck
text: "syscall/js"
- linters:
- staticcheck
text: "SA9003"
- linters:
- typecheck
text: "by package vert"
- linters:
- typecheck
text: "vert."
26 changes: 0 additions & 26 deletions internal/printer/printer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,6 @@ export default $$Component;`
var CREATE_ASTRO_CALL = "const $$Astro = $$createAstro('https://astro.build');\nconst Astro = $$Astro;"
var RENDER_HEAD_RESULT = "${$$renderHead($$result)}"

func suffixWithFilename(filename string, transitions bool) string {
propagationArg := "undefined"
if transitions {
propagationArg = `'self'`
}
return fmt.Sprintf("%s;", BACKTICK) + fmt.Sprintf(`
}, '%s', %s);
export default $$Component;`, filename, propagationArg)
}

type want struct {
frontmatter []string
definedVars []string
getStaticPaths string
code string
metadata
}

type metadata struct {
hoisted []string
hydratedComponents []string
clientOnlyComponents []string
modules []string
hydrationDirectives []string
}

type testcase struct {
name string
source string
Expand Down
Loading