Commit eca74c5
chore: remove stale eslint-disable comments (#1300)
## 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](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!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.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
7695809. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent be5cd04 commit eca74c5
18 files changed
Lines changed: 3 additions & 26 deletions
File tree
- packages
- sdk
- browser/__tests__/platform
- electron
- __tests__/platform
- src/platform
- react-native/src
- fromExternal/react-native-sse
- platform/crypto
- polyfills
- server-ai
- examples/vercel-ai/src
- src/api/providers
- server-node
- __tests__/platform
- src/platform
- store/node-server-sdk-dynamodb
- __tests__
- src
- telemetry/browser-telemetry
- __tests__
- vendor/TraceKit
- src/vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
0 commit comments