You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop leading underscores from module-private identifiers
Per the fleet's socket/no-underscore-identifier rule, 12 module-private
identifiers in scripts/ and test/ had leading underscores stripped:
- scripts/constants/{node,utils}.mts: platform, gitExecPath, tsxExecPath,
defaultWhichOptions, licenseContent, gitIgnorePatterns, ignoreGlobs
- scripts/util/{tests,packages,templates}.mts: cliArgs,
cachedTestNpmPackageJson, templates
- test/npm/{has-symbols,json-stable-stringify}.test.mts: key,
jsonStableStringifyModule
One rule-interaction tweak: test/npm/has-symbols.test.mts renamed
`_key` to `key`. The loop body uses the binding only as a sentinel
(if a `for...in` enumerates ANY key, the test fails). After the
rename, eslint/no-unused-vars + TS6133 would flag it; the
`expect.fail()` message now interpolates `String(key)`, preserving
test intent while marking the binding as used.
Also: allowlist acorn.wasm in the local
scripts/validation/file-size.mts (mirrors the wheelhouse-canonical
fix; socket-registry has its own validator path).
Verified: pnpm run check --all passes; pnpm test = 2184 tests, all green.
0 commit comments