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>
Tests
abort
Tests for when the --abort-on-uncaught-exception flag is used.
| Runs on CI |
|---|
| No |
addons
Tests for addon functionality along with some tests that require an addon to function properly.
| Runs on CI |
|---|
| Yes |
cctest
C++ test that is run as part of the build process.
| Runs on CI |
|---|
| Yes |
debugger
Tests for debugger functionality.
| Runs on CI |
|---|
| No |
disabled
Tests that have been disabled from running for various reasons.
| Runs on CI |
|---|
| No |
fixtures
Test fixtures used in various tests throughout the test suite.
gc
Tests for garbage collection related functionality.
| Runs on CI |
|---|
| No |
internet
Tests that make real outbound connections (mainly networking related modules). Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.
| Runs on CI |
|---|
| No |
known_issues
Tests reproducing known issues within the system.
| Runs on CI |
|---|
| No |
message
Tests for messages that are output for various conditions (console.log,
error messages etc.)
| Runs on CI |
|---|
| Yes |
parallel
Various tests that are able to be run in parallel.
| Runs on CI |
|---|
| Yes |
pummel
Various tests for various modules / system functionality operating under load.
| Runs on CI |
|---|
| No |
sequential
Various tests that are run sequentially.
| Runs on CI |
|---|
| Yes |
testpy
Test configuration utility used by various test suites.
timers
Tests for timing utilities (setTimeout
and setInterval).
| Runs on CI |
|---|
| No |