What's Changed
🐞 Fixes
- Remove
no-unnecessary-keyrule from strict presets by @Rel1cx in #1386 - Remove
no-duplicate-keyrule from recommended presets by @Rel1cx in #1387 - Remove
no-implicit-keyrule from recommended presets by @Rel1cx in #1388
📝 Changes you should be aware of
The following rules have been removed from the strict and recommended presets:
no-unnecessary-keyno-duplicate-keyno-implicit-key
In React projects with the new JSX transform enabled, the key prop can be defined and used by users like any other component prop. This unlocks new patterns for key usage that above rules may not handle correctly. Therefore, these rules have been removed from the presets to avoid potential false positives. You can still enable these rules manually if needed.
Full Changelog: v2.5.3...v2.5.5