Commit b247a9d
authored
fix(linter/unicorn/new-for-builtins): support
## Summary
- Add `Float16Array` to the list of builtins enforced by
`unicorn/new-for-builtins`
- Uncomment the corresponding test case
- Update the rule's documentation to mention `Float16Array`
## References
-
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/test/snapshots/new-for-builtins.js.md#invalid47-const-foo--float16arrayFloat16Array (#25382)1 parent 19109cd commit b247a9d
2 files changed
Lines changed: 9 additions & 2 deletions
File tree
- crates/oxc_linter/src
- rules/unicorn
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
297 | | - | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
| |||
0 commit comments