Open renato-bohler opened 4 months ago
This PR implements an adjustment on the auto=fixer when transforming generic TSX components with one type argument.
Fixes #27
Otherwise, the auto-fix will generate invalid TSX syntax.
I added unit tests, but I used a few React + TypeScript codebases to test this on, plus unit tests.
CI failing because Node is 16, while a dependency requires >=18. Similar to https://github.com/JamieMason/eslint-plugin-prefer-arrow-functions/pull/31#issuecomment-1963919099
16
>=18
https://github.com/JamieMason/eslint-plugin-prefer-arrow-functions/actions/runs/8126337559/job/22209940539?pr=32#step:4:8
Description (What)
This PR implements an adjustment on the auto=fixer when transforming generic TSX components with one type argument.
Fixes #27
Justification (Why)
Otherwise, the auto-fix will generate invalid TSX syntax.
How Can This Be Tested?
I added unit tests, but I used a few React + TypeScript codebases to test this on, plus unit tests.