mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
4e6dc00401
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> |
||
---|---|---|
.. | ||
configure.d | ||
doc | ||
eslint | ||
eslint-rules | ||
gyp | ||
icu | ||
msvs | ||
osx-pkg.pmdoc | ||
pkgsrc | ||
rpm | ||
certdata.txt | ||
check-imports.py | ||
cpplint.py | ||
create_android_makefiles | ||
create_expfile.sh | ||
genv8constants.py | ||
getnodeversion.py | ||
gyp_node.py | ||
install.py | ||
js2c.py | ||
jslint.js | ||
license2rtf.js | ||
license-builder.sh | ||
lsan_suppressions.txt | ||
make-v8.sh | ||
Makefile | ||
mk-ca-bundle.pl | ||
osx-codesign.sh | ||
osx-pkg-postinstall.sh | ||
osx-productsign.sh | ||
release.sh | ||
run-valgrind.py | ||
specialize_node_d.py | ||
test-npm.sh | ||
test.py | ||
update-authors.sh | ||
utils.py |