Expand Minimize

SPF059803: File that doesn't define React component shouldn't use the .jsx/.tsx extension

File that doesn't define React component shouldn't use the .jsx/.tsx extension

CheckId SPF059803
TypeName FileWithoutReactComponentShouldntHaveReactExtension
Severity Warning
Type Src

Code file that doesn't define one or more React components should have the .js or .ts (if you're using TypeScript) extension rather than .jsx/.tsx.

Using the right extension clearly denotes that the particular file contains only code which makes it easier for developers to locate the specific file in the project.

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.