Skip to content

Commit c53f33f

Browse files
HiDeooematipico
authored andcommitted
Fix linting (#1099)
Co-authored-by: ematipico <[email protected]>
1 parent c7132ef commit c53f33f

File tree

3 files changed

+6
-42
lines changed

3 files changed

+6
-42
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
uses: golangci/golangci-lint-action@v4
7474
with:
7575
version: latest
76+
env:
77+
GOOS: js
78+
GOARCH: wasm
7679

7780
lint-js:
7881
timeout-minutes: 3
@@ -81,7 +84,5 @@ jobs:
8184
- uses: actions/checkout@v4
8285
- name: Setup Biome
8386
uses: biomejs/setup-biome@v2
84-
with:
85-
version: latest
8687
- name: Run linting
8788
run: biome ci --diagnostic-level=warn

.golangci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
run:
2-
skip-dirs:
1+
issues:
2+
exclude-dirs:
33
- lib
4-
skip-files:
4+
exclude-files:
55
- xxhash.go
6-
7-
issues:
86
exclude-rules:
97
- path: token.go
108
linters:
@@ -13,15 +11,6 @@ issues:
1311
linters:
1412
- errcheck
1513

16-
- linters:
17-
- typecheck
18-
text: "syscall/js"
1914
- linters:
2015
- staticcheck
2116
text: "SA9003"
22-
- linters:
23-
- typecheck
24-
text: "by package vert"
25-
- linters:
26-
- typecheck
27-
text: "vert."

internal/printer/printer_test.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,6 @@ export default $$Component;`
4646
var CREATE_ASTRO_CALL = "const $$Astro = $$createAstro('https://astro.build');\nconst Astro = $$Astro;"
4747
var RENDER_HEAD_RESULT = "${$$renderHead($$result)}"
4848

49-
func suffixWithFilename(filename string, transitions bool) string {
50-
propagationArg := "undefined"
51-
if transitions {
52-
propagationArg = `'self'`
53-
}
54-
return fmt.Sprintf("%s;", BACKTICK) + fmt.Sprintf(`
55-
}, '%s', %s);
56-
export default $$Component;`, filename, propagationArg)
57-
}
58-
59-
type want struct {
60-
frontmatter []string
61-
definedVars []string
62-
getStaticPaths string
63-
code string
64-
metadata
65-
}
66-
67-
type metadata struct {
68-
hoisted []string
69-
hydratedComponents []string
70-
clientOnlyComponents []string
71-
modules []string
72-
hydrationDirectives []string
73-
}
74-
7549
type testcase struct {
7650
name string
7751
source string

0 commit comments

Comments
 (0)