diff --git a/.eslintignore b/.eslintignore index 023979a515..011ec96362 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,7 +2,6 @@ lib/internal/v8_prof_polyfill.js lib/punycode.js test/addons/??_* test/fixtures -test/tmp* tools/eslint tools/icu node_modules diff --git a/test/common/index.js b/test/common/index.js index 8ccbc0e0df..76b86b6772 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -38,7 +38,9 @@ const noop = () => {}; exports.fixturesDir = fixturesDir; -exports.tmpDirName = 'tmp'; +// Using a `.` prefixed name, which is the convention for "hidden" on POSIX, +// gets tools to ignore it by default or by simple rules, especially eslint. +exports.tmpDirName = '.tmp'; // PORT should match the definition in test/testpy/__init__.py. exports.PORT = +process.env.NODE_COMMON_PORT || 12346; exports.isWindows = process.platform === 'win32';