Commit dd28963
authored
- **refactor: reenable no this alias rule**
- **refactor(test): enabling no-non-null-asserted-option-chain**
SDK-2233
SDK-2232
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk lint-driven refactor: behavior is unchanged aside from
passing `this` directly and tightening test typing assumptions.
>
> **Overview**
> Re-enables the TypeScript ESLint rules
`@typescript-eslint/no-this-alias` and
`@typescript-eslint/no-non-null-asserted-optional-chain` by removing
their disables from `.eslintrc.js`.
>
> Updates affected code to comply: `BrowserTelemetryImpl` no longer
aliases `this` before calling `makeInspectors`, and the prerequisite
evaluator tests remove `?.` + `!` optional-chain assertions when
accessing `testPayload.flags`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
cd60b80. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
1 parent afbed0f commit dd28963
3 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | 173 | | |
175 | | - | |
| 174 | + | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
| |||
0 commit comments