Commit 5fde08f
committed
chore: add golangci-lint config and update dependencies
This commit introduces comprehensive Go linting infrastructure and updates
TypeSpec/Node.js dependencies to their latest versions for improved
type safety and compatibility.
Changes:
---------
1. NEW: .golangci.yml - Comprehensive golangci-lint configuration
- Added extensive linter suite (90+ linters) for Go code quality
- Enabled all standard linters including: errcheck, gosec, govet,
staticcheck, unused, and many specialized linters
- Configured strict output formats and issue thresholds
- Set Go 1.26.0 as minimum version with experimental features enabled
- Enabled formatters: gci (import organization), goimports, gofumpt, golines
- Configured parallel test execution with proper timeout (5m)
- Build tags enabled for arena allocator, goroutine leak profiling,
JSON v2, runtime secrets, and SIMD experiments
2. CHORE: package.json - TypeSpec and tooling dependency updates
Production dependencies updated:
- @typespec/compiler: ^1.10.0 → ^1.11.0
- @typespec/http: ^1.10.0 → ^1.11.0
Dev dependencies updated:
- @types/node: ^25.5.0 → ^25.6.0
- @typescript-eslint/eslint-plugin: ^8.57.1 → ^8.58.1
- @typescript-eslint/parser: ^8.57.1 → ^8.58.1
- eslint: ^10.1.0 → ^10.2.0
- typescript: 6.0.0-dev.20251114 → 6.0.2 (stable release)
- vitest: ^4.1.0 → ^4.1.4
Peer dependencies updated:
- @typespec/compiler: 1.10.0 → 1.11.0
Rationale:
- TypeSpec 1.11.0 provides improved type checking and compiler stability
- TypeScript 6.0.2 is a stable release (vs dev preview)
- ESLint 10.2.0 includes bug fixes and better TypeScript support
- vitest 4.1.4 offers improved test performance and stability
3. STYLE: src/test/temp-e2e-test/generated-service.go - Go formatting
Reflowed multiline function signatures for GetUserHandler and
CreateUserHandler from single-line declarations to expanded
multi-line format for improved readability and consistency
with Go formatting conventions.
Before:
func (s *TestAPIService) GetUserHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, id IdID) {
After:
func (s *TestAPIService) GetUserHandler(
ctx context.Context,
w http.ResponseWriter,
r *http.Request,
id IdID,
) {
Impact:
-------
- Go: Project now has comprehensive static analysis coverage via golangci-lint
- TypeSpec: Using latest compiler (1.11.0) with improved type checking
- TypeScript: Upgraded to stable 6.0.2 release from dev preview
- CI/CD: golangci-lint can now be integrated into CI pipelines
- Code quality: 90+ linters will catch common issues early
💘 Generated with Crush
Assisted-by: MiniMax-M2.7-highspeed via Crush <crush@charm.land>1 parent 52ae4fe commit 5fde08f
3 files changed
Lines changed: 157 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
0 commit comments