Node.js project naming conventions for files & folders

后端 未结 7 1664
清酒与你
清酒与你 2020-12-04 04:41

What are the naming conventions for files and folders in a large Node.js project?

Should I capitalize, camelCase, or under-score?

Ie. is this considered vali

7条回答
  •  被撕碎了的回忆
    2020-12-04 05:26

    Based on 'Google JavaScript Style Guide'

    File names must be all lowercase and may include underscores (_) or dashes (-), but no additional punctuation. Follow the convention that your project uses. Filenames’ extension must be .js.

提交回复
热议问题