node/lib
Rich Trott 4e6dc00401 tools: lint for object literal spacing
There has been occasional nits for spacing in object literals in PRs but
the project does not lint for it and it is not always handled
consistently in the existing code, even on adjacent lines of a file.

This change enables a linting rule requiring no space between the key
and the colon, and requiring at least one space (but allowing for more
so property values can be lined up if desired) between the colon and the
value. This appears to be the most common style used in the current code
base.

Example code the complies with lint rule:

    myObj = { foo: 'bar' };

Examples that do not comply with the lint rule:

    myObj = { foo : 'bar' };
    myObj = { foo:'bar' };

PR-URL: https://github.com/nodejs/node/pull/6592
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
2016-05-08 22:45:20 -07:00
..
internal src,lib: minor --debug-brk cleanup 2016-05-07 05:23:47 +02:00
.eslintrc tools: add buffer-constructor eslint rule 2016-03-18 17:05:18 -07:00
_debug_agent.js lib: refactor code with startsWith/endsWith 2016-03-23 15:58:52 +02:00
_debugger.js debugger: display array contents in repl 2016-05-02 10:18:53 -04:00
_http_agent.js https: fix ssl socket leak when keepalive is used 2016-03-17 14:32:49 +02:00
_http_client.js http: skip body and next message of CONNECT res 2016-04-19 11:48:06 -04:00
_http_common.js http: skip body and next message of CONNECT res 2016-04-19 11:48:06 -04:00
_http_incoming.js http: remove old, confusing comment 2016-02-15 07:52:21 -08:00
_http_outgoing.js http: correct error message for invalid trailer 2016-04-26 22:38:29 -07:00
_http_server.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
_linklist.js lib,test: deprecate _linklist 2015-10-08 17:32:08 -07:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js events: add prependListener() and prependOnceListener() 2016-04-22 09:28:37 -07:00
_stream_transform.js stream: prevent object map change in TransformState 2016-02-02 13:05:04 -06:00
_stream_wrap.js stream_wrap: error if stream has StringDecoder 2015-12-06 21:55:25 -05:00
_stream_writable.js doc: make `writable.setDefaultEncoding()` return `this` 2016-04-30 12:55:46 -04:00
_tls_common.js tls: scope loop vars with let 2016-01-26 20:53:05 +01:00
_tls_legacy.js net: introduce `Socket#connecting` property 2016-04-27 00:41:15 -04:00
_tls_wrap.js net: introduce `Socket#connecting` property 2016-04-27 00:41:15 -04:00
assert.js assert: allow circular references 2016-04-29 16:52:57 -07:00
buffer.js buffer: safeguard against accidental kNoZeroFill 2016-04-26 10:04:35 -07:00
child_process.js lib,test,tools: alignment on variable assignments 2016-04-18 17:19:11 -07:00
cluster.js cluster: remove use of bind() in destroy() 2016-05-03 09:31:51 -04:00
console.js console: timeEnd() with no label emits warning 2016-04-25 08:28:23 -07:00
constants.js Remove excessive copyright/license boilerplate 2015-01-12 15:30:28 -08:00
crypto.js crypto: fix error in deprecation message 2016-04-28 10:57:49 -07:00
dgram.js dgram: pass null as error on successful send() 2016-03-28 09:47:13 -04:00
dns.js dns: Use object without protoype for map 2016-03-22 11:13:03 -07:00
domain.js lib: reduce usage of `self = this` 2016-03-21 15:48:51 -07:00
events.js events: pass the original listener added by once 2016-04-29 12:10:50 -07:00
fs.js buffer: add Buffer.allocUnsafeSlow(size) 2016-04-15 10:36:01 -07:00
http.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
https.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
module.js src,lib: minor --debug-brk cleanup 2016-05-07 05:23:47 +02:00
net.js net: introduce `Socket#connecting` property 2016-04-27 00:41:15 -04:00
os.js os: add userInfo() method 2016-04-12 17:21:29 -04:00
path.js path: fix win32.isAbsolute() inconsistency 2016-04-04 14:45:22 -07:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: add missing `new` for errors lib/*.js 2015-03-24 12:42:15 -07:00
querystring.js querystring: fix comments 2016-04-25 09:56:52 -04:00
readline.js readline: remove deprecated methods 2016-05-02 10:12:12 -04:00
repl.js repl: don’t complete expressions when eval fails 2016-04-25 09:40:55 -07:00
stream.js lib,src: remove usage of events.EventEmitter 2015-09-23 00:23:08 +05:30
string_decoder.js doc: use Buffer.from() instead of new Buffer() 2016-04-27 13:23:41 +08:00
sys.js util: introduce `printDeprecationMessage` function 2015-06-04 10:59:43 +03:00
timers.js timers: fixing API refs to use safe internal refs 2016-03-28 16:18:14 -07:00
tls.js crypto: fail early when loading crypto without openssl 2016-03-23 10:34:40 -07:00
tty.js Revert "tty: don't read from console stream upon creation" 2016-03-29 10:21:46 -05:00
url.js url: drop auth in `url.resolve()` if host changes 2016-04-25 10:39:10 -07:00
util.js tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
v8.js v8,src: expose statistics about heap spaces 2016-01-18 11:44:00 -05:00
vm.js lib: reduce util.is*() usage 2015-01-31 23:47:29 -05:00
zlib.js zlib: fix use after null when calling .close 2016-04-19 08:46:54 +02:00