Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>React Router File Path ValidatorNew to Visual Studio Code? Get it now.
React Router File Path Validator

React Router File Path Validator

Chasoft Labs

|
37 installs
| (0) | Free
A VS Code extension that validates file paths for layout, index, and route functions in React Router applications.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

React Router File Path Validator

This extension validates file paths for the layout, index, and route functions in the routes.ts file for a React Router version 7 application.

Features

  • Auto validates file paths specified in the routes.ts/js file.
  • Ensures that paths for layout, index, and route functions are correct and exist in the project.
  • Invalid filepaths will be underlined in red.
  • "Ctrl + Click" on valid file path to open that file.
  • For other files other than routes.ts/js, you need to run the command Validate React Router File Paths manually.

What's New in Version 1.1.2

  • Fixed issue where file paths ending with .tsx (like "route.tsx") were incorrectly detected.
  • Improved regex patterns for all React Router function types.
  • Supports only .jsx and .tsx files.

Note

  • Support React Router version 7.x and above only!

License

This project is licensed under the MIT License. See the LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft