File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,20 @@ jobs:
23
23
uses : actions/checkout@v4
24
24
with :
25
25
submodules : true
26
+ - name : Setup Node
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : ' 24'
26
30
27
31
- name : Setup Go
28
32
uses : ./.github/actions/setup-go
29
33
with :
30
34
go-version : ${{ matrix.go-version }}
31
35
cache-name : test-go
36
+ - name : go vet
37
+ run : npm run lint:go
38
+ - name : go fmt
39
+ run : npm run format:go
32
40
- name : Unit Test
33
41
run : |
34
42
go test -parallel 4 ./internal/...
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ type HandshakeResponse struct {
54
54
55
55
// LintRequest represents a lint request from JS to Go
56
56
type LintRequest struct {
57
- Files []string `json:"files,omitempty"`
58
- Config string `json:"config,omitempty"` // Path to rslint.json config file
59
- Format string `json:"format,omitempty"`
60
- WorkingDirectory string `json:"workingDirectory,omitempty"`
57
+ Files []string `json:"files,omitempty"`
58
+ Config string `json:"config,omitempty"` // Path to rslint.json config file
59
+ Format string `json:"format,omitempty"`
60
+ WorkingDirectory string `json:"workingDirectory,omitempty"`
61
61
// Supports both string level and array [level, options] format
62
- RuleOptions map [string ]interface {} `json:"ruleOptions,omitempty"`
63
- FileContents map [string ]string `json:"fileContents,omitempty"` // Map of file paths to their contents for VFS
62
+ RuleOptions map [string ]interface {} `json:"ruleOptions,omitempty"`
63
+ FileContents map [string ]string `json:"fileContents,omitempty"` // Map of file paths to their contents for VFS
64
64
}
65
65
66
66
// LintResponse represents a lint response from Go to JS
Original file line number Diff line number Diff line change @@ -275,7 +275,6 @@ var NoBaseToStringRule = rule.Rule{
275
275
// // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
276
276
// const variable = scope.set.get('String');
277
277
// return !variable?.defs.length;
278
- return true
279
278
}
280
279
return false
281
280
}
Original file line number Diff line number Diff line change 25
25
"test:go" : " go test ./internal/..." ,
26
26
"typecheck" : " pnpm tsc -b tsconfig.json" ,
27
27
"lint" : " rslint" ,
28
+ "lint:go" : " go vet ./cmd/... ./internal/..." ,
29
+ "format:go" : " go fmt ./cmd/... ./internal/..." ,
28
30
"prepare" : " husky"
29
31
},
30
32
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments