0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/.eslintrc
Rich Trott 3de353b554 test: make common.js mandatory via linting rule
test/common.js contains code that detects global variable leaks.

This eslint rule checks that a module named `common` is loaded. It is
only applicable to files in the test directory. Tests that intentionally
leak variables can opt out with an eslint-disable comment.

PR-URL: https://github.com/nodejs/node/pull/3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-10-06 15:11:58 -07:00

13 lines
232 B
Plaintext

## Test-specific linter rules
rules:
## allow undeclared variables
no-undef: 0
## allow global Buffer usage
require-buffer: 0
## common module is mandatory in tests
required-modules: [2, "common"]
globals:
gc: false