Skip to content

Fix lint errors in preparation for ESLint 10#1103

Merged
mbouaziz merged 1 commit intomainfrom
fix-lint-errors
Feb 19, 2026
Merged

Fix lint errors in preparation for ESLint 10#1103
mbouaziz merged 1 commit intomainfrom
fix-lint-errors

Conversation

@mbouaziz
Copy link
Copy Markdown
Contributor

Summary

  • Fix no-useless-assignment in sk_types.ts (use let res: number instead of let res = 0)
  • Fix prefer-nullish-coalescing in sk_types.ts and index.ts (use ?? and ??=)
  • Fix jsdoc/require-throws-type in api.ts and rest.ts (use {Type} syntax)
  • Fix jsdoc/escape-inline-tags in index.ts (backtick-escape package names in JSDoc)

These are valid lint improvements that pass with current ESLint 9 and unblock the ESLint 10 upgrade (#1101).

Test plan

  • make check-ts passes (all build + lint) — only pre-existing skc wasm build failure remains

🤖 Generated with Claude Code

- Fix no-useless-assignment in sk_types.ts (use `let res: number` instead of `let res = 0`)
- Fix prefer-nullish-coalescing in sk_types.ts and index.ts (use `??` and `??=`)
- Fix jsdoc/require-throws-type in api.ts and rest.ts (use `{Type}` syntax)
- Fix jsdoc/escape-inline-tags in index.ts (backtick-escape package names)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mbouaziz mbouaziz merged commit c17a839 into main Feb 19, 2026
5 of 6 checks passed
@mbouaziz mbouaziz deleted the fix-lint-errors branch February 19, 2026 15:16
mbouaziz added a commit that referenced this pull request Feb 21, 2026
## Summary
- Bump ESLint from 9.15.0 to 10.0.0 and minimatch from 9.0.5 to 10.0.1
- Update shared `@skiplabs/eslint-config` dependencies for ESLint 10
compatibility (`@eslint/js` ^10, `@stylistic/eslint-plugin-js` ^4,
`eslint-plugin-jsdoc` ^62, `typescript-eslint` ^8.56)
- Remove `/* eslint-env node */` comments from example `server.js` files
(ESLint 10 errors on these; globals are already declared in
`eslint.config.js`)
- Regenerate `package-lock.json` and
`examples/cache_invalidation/edge_service/pnpm-lock.yaml`

## Notes
- Depends on #1103 (lint fixes that are valid on both ESLint 9 and 10)
- `eslint-plugin-jsdoc` doesn't declare ESLint 10 in peer deps yet (`^7
|| ^8 || ^9`) but works in practice
- `@stylistic/eslint-plugin-js` emits a deprecation warning recommending
migration to `@stylistic/eslint-plugin` (not blocking)

## Test plan
- [x] `make check-ts` build + lint passes for all workspaces (only
pre-existing `skc` wasm build failure remains, unrelated to ESLint)
- [x] Example workspaces (`cache_invalidation/edge_service`,
`blogger/reactive_service`) lint clean

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant