Skip to content

Commit be8d934

Browse files
Trottdanielleadams
authored andcommitted
tools: remove exception for Node.js 8 and earlier
Remove exception in .eslintrc.js to accommodate versions of Node.js prior to 10.x. 10.x and later all support omitting catch block arguments. PR-URL: #38840 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 6986154 commit be8d934

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.eslintrc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ Module._findPath = (request, paths, isMain) => {
2525
if (!r && hacks.includes(request)) {
2626
try {
2727
return require.resolve(`./tools/node_modules/${request}`);
28-
// Keep the variable in place to ensure that ESLint started by older Node.js
29-
// versions work as expected.
30-
// eslint-disable-next-line no-unused-vars
31-
} catch (e) {
28+
} catch {
3229
return require.resolve(
3330
`./tools/node_modules/eslint/node_modules/${request}`);
3431
}

0 commit comments

Comments
 (0)