diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44313d99..4daea92d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,9 @@ jobs: uses: golangci/golangci-lint-action@v4 with: version: latest + env: + GOOS: js + GOARCH: wasm lint-js: timeout-minutes: 3 @@ -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 diff --git a/.golangci.yml b/.golangci.yml index 9f30a55b..514fb2b3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,10 +1,8 @@ -run: - skip-dirs: +issues: + exclude-dirs: - lib - skip-files: + exclude-files: - xxhash.go - -issues: exclude-rules: - path: token.go linters: @@ -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." diff --git a/internal/printer/printer_test.go b/internal/printer/printer_test.go index fedea94a..e3b47746 100644 --- a/internal/printer/printer_test.go +++ b/internal/printer/printer_test.go @@ -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