diff options
-rw-r--r-- | .eslintrc.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 0b4c170813..23ddc3c95c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,7 +17,10 @@ Module._findPath = (request, paths, isMain) => { if (!r && hacks.includes(request)) { try { return require.resolve(`./tools/node_modules/${request}`); - } catch { + // Keep the variable in place to ensure that ESLint started by older Node.js + // versions work as expected. + // eslint-disable-next-line no-unused-vars + } catch (e) { return require.resolve( `./tools/node_modules/eslint/node_modules/${request}`); } |