Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

all file names lowercase - use hyphens instead of camelcase

See original GitHub issue

Strange mixture of camelcase and hyphenated files when I used:

npx create-react-app . --typescript

Screenshot from 2020-02-12 11-15-19

I would recommend only lowercase filenames - the technical reason is that macos is case insensitive and linux is not. so macos fs won’t see file renamings easily when using git etc. people that know will know what I am talking about

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

iainjreidcommented, Mar 1, 2020

This is something that’s been nagging away in the back of my mind for quite a while, I’m not completely sure where the convention arose from.

The lowercase filename convention is far more friendly towards non-Linux systems!

ORESoftwarecommented, Mar 5, 2020

@ianschmitz that may be so, but have to stop digging the pit at some point. Mixture of upper and lower case filenames is bad for technical reasons mentioned above. Basically any system that is not type-checked - I always use lower case names only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filenames and file types - Google Developers
Key Point: Use all lowercase, and separate words with hyphens. Make file and directory names lowercase. Use hyphens, not underscores, to separate words—for ......
Read more >
File Naming Conventions | INLS 161-001 Spring 2022
Generally, I don't use any characters for file naming outside of these: ... usually use CamelCase and stick to all lower case and...
Read more >
What are good file naming conventions?
The lowercase letters will all display grouped together after the upper cased ones. This is why it's suggested that file names be used...
Read more >
Kebab vs. camel case: How these naming conventions differ
Both kebab case and camel case are naming conventions that try make it easier to read compound words that form a single variable...
Read more >
What's the name for hyphen-separated case? - Stack Overflow
@CatPlusPlus Lisp uses this-case, and because Google treats a - as a space, almost every SEO friendly URL uses it too. – lmirosevic....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found