igeligel / personal-site

:metal: Personal site of Kevin Peters. PWA powered. Some mix of blog and portfolio which was written with Nuxt.js. Articles are about Vue.js and Clean Code. Also showcasing my projects on this website.
https://www.kevinpeters.net
MIT License
21 stars 4 forks source link

Blog: Use kebab case in package names #19

Open igeligel opened 5 years ago

igeligel commented 5 years ago

Proposed Blog Title

How to name files and directories in JavaScript projects

*Title slug**

how-to-name-files-and-directories-in-javascript-projects

Description

Use kebab-case for all package, folder and file names.

Why? You should imagine that any folder or file might be extracted to its own package some day. Packages cannot contain uppercase letters.

New packages must not have uppercase letters in the name. https://docs.npmjs.com/files/package.json#name

Therefore, camelCase should never be used. This leaves snake_case and kebab-case.

kebab-case is by far the most common convention today. The only use of underscores is for internal node packages, and this is simply a convention from the early days.

igeligel commented 4 years ago