0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/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 build: i18n: add icu config options 2015-01-02 16:51:53 -08:00
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 build: fix .pkg creation tooling 2015-09-06 21:38:09 +10:00
pkgsrc
rpm tools: add --prof-process flag to node binary 2015-12-08 02:00:46 +01:00
certdata.txt tools: update certdata.txt 2015-11-21 21:33:01 +01:00
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 build: Updates for AIX npm support - part 1 2015-10-23 10:43:02 -04:00
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 build: add --enable-asan with builtin leakcheck 2015-09-06 21:38:00 +10:00
make-v8.sh test: run v8 tests from node tree 2016-02-11 13:07:03 -05:00
Makefile
mk-ca-bundle.pl tools: customize mk-ca-bundle.pl 2015-06-02 19:27:47 +02:00
osx-codesign.sh build: update build targets for io.js 2015-06-25 15:22:27 +10:00
osx-pkg-postinstall.sh
osx-productsign.sh build: update build targets for io.js 2015-06-25 15:22:27 +10:00
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 tools: update npm test tooling for 3.3.10+ 2015-11-02 14:22:41 -05:00
test.py tools: add tests for the doctool 2016-04-29 00:45:49 +02:00
update-authors.sh doc: make tools/update-authors.sh cross-platform 2015-03-11 13:25:17 +01:00
utils.py build: enable compilation for linuxOne 2016-03-29 18:52:48 -04:00