Why I avoid naming files "index": 1
Why I avoid naming files "index":
1. Many files called index.* makes my open tabs harder to scan for the right file.
2. I open files by name using Cmd+P in @code. If they’re all named index, I can’t.
That said, there are 2 cases when I name files index:
1. In frameworks that use the filesystem to declare routes (@nextjs @remix_run)
2. When declaring a barrel to shorten import paths
I’m skeptical #2 this is worth it - VSCode auto imports, so path length doesn't matter.