Skip to content

tools: avoid using process.cwd in tools/lint-js

The first occurrence of path.join() can be replaced with path.resolve(). The second occurrence should be unnecessary as ESLint will resolve the path internally, and the old check probably did not work as intended anyway.

CI: https://ci.nodejs.org/job/node-test-linter/13675/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

tools

Merge request reports

Loading