rwaldron / idiomatic.js

Principles of Writing Consistent, Idiomatic JavaScript
Other
24.66k stars 3.46k forks source link

File naming convention #160

Open rileytg opened 10 years ago

rileytg commented 10 years ago

google and airbnb say use camelCase (as opposed to PascalCase) https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Naming https://github.com/airbnb/javascript#modules

what do you think?

rileytg commented 10 years ago

correction google says all lower case

pluma commented 10 years ago

I think the consensus is lowercase. I think all NPM modules use all-lowercase.

Obvious exception: Java-style "class" files as used by some frameworks (e.g. ExtJS).