Skip to content

chore: remove stale eslint-disable comments#1300

Merged
joker23 merged 2 commits into
mainfrom
skz/sdk-2219/eslint-comments
Apr 21, 2026
Merged

chore: remove stale eslint-disable comments#1300
joker23 merged 2 commits into
mainfrom
skz/sdk-2219/eslint-comments

Conversation

@joker23

@joker23 joker23 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove ~65 stale eslint-disable comments for rules that no longer exist after replacing airbnb config
  • Rules removed: no-param-reassign (43), no-bitwise (10), no-restricted-syntax for ForOfStatement (11), no-plusplus (4), no-continue (1)
  • Retains a targeted no-restricted-syntax disable in vendor TraceKit.ts for a legitimate for...in loop

Test plan

  • yarn workspaces foreach -p run lint passes with 0 errors
  • No functional code changes (comment removal only)
  • grep -rn "eslint-disable.*no-(param-reassign|bitwise|plusplus|continue)" packages/ returns zero results

Depends on #1299.

🤖 Generated with Claude Code


Note

Low Risk
Primarily removes lint suppression comments with no runtime behavior changes; minor risk is limited to new no-param-reassign enforcement surfacing previously ignored lint violations.

Overview
Cleans up stale eslint-disable directives across SDKs/tests (bitwise, plusplus, restricted-syntax, etc.) after the eslint config change, leaving code behavior unchanged.

Updates .eslintrc.js to explicitly enforce no-param-reassign, and keeps a single targeted no-restricted-syntax suppression in vendor TraceKit.ts for a necessary for...in loop.

Reviewed by Cursor Bugbot for commit 7695809. Bugbot is set up for automated code reviews on this repo. Configure here.

Base automatically changed from skz/sdk-2219/eslint-config to main April 21, 2026 16:52
Remove ~65 eslint-disable comments for rules that no longer exist after
replacing eslint-config-airbnb-base with eslint:recommended:

- no-param-reassign (43 comments)
- no-bitwise (10 comments)
- no-restricted-syntax for ForOfStatement (11 comments)
- no-plusplus (4 comments)
- no-continue (1 comment)

Retains a targeted no-restricted-syntax disable in vendor TraceKit.ts
for a legitimate for...in loop.

No functional code changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joker23 joker23 force-pushed the skz/sdk-2219/eslint-comments branch from 922523f to 5526f0a Compare April 21, 2026 16:54
@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31722 bytes
Compressed size limit: 34000
Uncompressed size: 113100 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179269 bytes
Compressed size limit: 200000
Uncompressed size: 830289 bytes

@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37607 bytes
Compressed size limit: 38000
Uncompressed size: 207149 bytes

@joker23 joker23 marked this pull request as ready for review April 21, 2026 17:03
@joker23 joker23 requested a review from a team as a code owner April 21, 2026 17:03

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Add no-param-reassign back as an explicit rule (was previously provided
by airbnb). Restore the existing eslint-disable comments in files that
intentionally reassign parameters.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@joker23 joker23 merged commit eca74c5 into main Apr 21, 2026
46 checks passed
@joker23 joker23 deleted the skz/sdk-2219/eslint-comments branch April 21, 2026 20:04
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.

2 participants