rsnext/packages/next-codemod/transforms
Ishaq Ibrahim 29c5acd33b
issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158)
Fixes issue #41925 by skipping duplicate props. I've tested the changes
locally - the duplicate prop is being skipped successfully. The
new-link.test.js suite is also passing.

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: Ishaq Ibrahim <ishaq.ibrahim@convertdigital.com.au>
2022-10-30 13:09:14 -07:00
..
__testfixtures__ issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158) 2022-10-30 13:09:14 -07:00
__tests__ issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158) 2022-10-30 13:09:14 -07:00
add-missing-react-import.ts Add experimental cra-to-next transform in codemod cli (#24969) 2021-06-09 16:51:56 +02:00
cra-to-next.ts chore: replace deprecated String.prototype.substr() (#35421) 2022-03-24 17:49:38 -04:00
name-default-component.ts chore: replace deprecated String.prototype.substr() (#35421) 2022-03-24 17:49:38 -04:00
new-link.ts issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158) 2022-10-30 13:09:14 -07:00
next-image-experimental.ts Show error message when using legacy props on new next/image (#41930) 2022-10-27 12:17:28 -04:00
next-image-to-legacy-image.ts Update next/image codemod to handle require() (#41345) 2022-10-11 18:12:02 -07:00
url-to-withrouter.ts Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
withamp-to-config.ts Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00