-
-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(linter/oxc): differentiate between array/object in `no-accumulat…
…ing-spread` loop diagnostic (#5375) when reporting diagnotics for code such as ```ts let foo = {}; for (let i = 0; i < 10; i++) { foo = { ...foo, [i]: i }; } ``` we do not currently differentiate the diagnostic message between object/array. this PR changes this to help the user fix ths issue
- Loading branch information
Showing
2 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters