diff options
author | isaacs <i@izs.me> | 2011-11-22 16:56:59 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-11-22 17:03:58 -0800 |
commit | 3ab15cde2516564a2bc4fe6246fe447f07752ed4 (patch) | |
tree | e858b4c4617fe2f9d1b69e7b2186f6b0674ec93b /deps/npm/doc | |
parent | 0ba78d5f36256dacf625e96dc40e4e34bacfdd35 (diff) | |
download | node-new-3ab15cde2516564a2bc4fe6246fe447f07752ed4.tar.gz |
Update npm to 1.1.0-alpha-2
Diffstat (limited to 'deps/npm/doc')
-rw-r--r-- | deps/npm/doc/cli/coding-style.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/doc/cli/coding-style.md b/deps/npm/doc/cli/coding-style.md index f0640c85cd..5315c575c1 100644 --- a/deps/npm/doc/cli/coding-style.md +++ b/deps/npm/doc/cli/coding-style.md @@ -155,16 +155,16 @@ Use appropriate log levels. The default log() function logs at the ## Case, naming, etc. -Use lowerCamelCase for multiword identifiers when they refer to objects, +Use `lowerCamelCase` for multiword identifiers when they refer to objects, functions, methods, members, or anything not specified in this section. -Use UpperCamelCase for class names (things that you'd pass to "new"). +Use `UpperCamelCase` for class names (things that you'd pass to "new"). -Use all-lower-hyphen-css-case for multiword filenames and config keys. +Use `all-lower-hyphen-css-case` for multiword filenames and config keys. Use named functions. They make stack traces easier to follow. -Use CAPS_SNAKE_CASE for constants, things that should never change +Use `CAPS_SNAKE_CASE` for constants, things that should never change and are rarely used. Use a single uppercase letter for function names where the function |