What's Changed
✨ New
- Add
naming-convention/id-namerule forReact.useId()by @amir-rahmanii in #1497 - Deprecate
naming-convention/filenameandnaming-convention/filename-extensionby @Rel1cx in #1498
🐞 Fixes
- Update rules’
meta.typefrom"problem"to"suggestion"for naming-convention rules by @amir-rahmanii in #1496
📝 Changes you should be aware of
- The
naming-convention/filenamerule has been deprecated and will be removed in the next major version. - The
naming-convention/filename-extensionrule has been deprecated and will be removed in the next major version.
Modern React frameworks each come with their own naming conventions that can differ or even conflict. A single predefined, framework-agnostic filename or filename extension rule no longer matches real-world usage. Please follow the official naming conventions of the specific React framework you are using.
For example, here are some references for popular frameworks:
- Next.js — App Router and File-system conventions: https://nextjs.org/docs/app, https://nextjs.org/docs/app/api-reference/file-conventions
- React Router — File Route Conventions: https://reactrouter.com/how-to/file-route-conventions#file-route-conventions
- TanStack Start — TanStack Router File Naming Conventions: https://tanstack.com/router/v1/docs/framework/react/routing/file-naming-conventions
Full Changelog: v2.12.4...v2.13.0