node/tools
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
..
configure.d
doc tools: lint for object literal spacing 2016-05-08 22:45:20 -07:00
eslint tools: update ESLint to 2.9.0 2016-05-04 10:26:25 -07:00
eslint-rules tools: remove default parameters from lint rule 2016-04-28 22:48:37 -07:00
gyp gyp: inherit parent for *.host 2016-04-24 11:01:21 +10:00
icu tools: Check in tools for shrinking ICU size, change default to small-icu 2016-05-04 16:04:22 -07:00
msvs etw,build: always generate .rc and .h files 2016-03-29 17:37:14 +01:00
osx-pkg.pmdoc
pkgsrc
rpm
certdata.txt
check-imports.py tools: rewrite check-install.sh in python 2016-04-25 19:22:50 +05:30
cpplint.py tools: reduce verbosity of cpplint 2016-03-07 11:16:14 -08:00
create_android_makefiles build: add script to create Android .mk files 2016-03-22 19:17:28 +01:00
create_expfile.sh
genv8constants.py
getnodeversion.py
gyp_node.py tools: remove unused imports 2016-03-18 10:56:13 -07:00
install.py tools: remove simplejson dependency 2016-04-12 21:33:16 +05:30
js2c.py src,tools: remove null sentinel from source array 2016-02-25 13:21:56 +01:00
jslint.js tools: add -F flag for fixing lint issues 2016-05-02 16:58:52 -07:00
license2rtf.js
license-builder.sh tools: fix license-builder.sh again for ICU 2016-04-18 15:58:22 -07:00
lsan_suppressions.txt
make-v8.sh test: run v8 tests from node tree 2016-02-11 13:07:03 -05:00
Makefile
mk-ca-bundle.pl
osx-codesign.sh
osx-pkg-postinstall.sh
osx-productsign.sh
release.sh tools: add support for subkeys in release tools 2016-01-26 09:05:33 -08:00
run-valgrind.py
specialize_node_d.py
test-npm.sh
test.py tools: add tests for the doctool 2016-04-29 00:45:49 +02:00
update-authors.sh
utils.py build: enable compilation for linuxOne 2016-03-29 18:52:48 -04:00