diff options
author | cjihrig <cjihrig@gmail.com> | 2018-11-04 20:42:27 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-11-06 18:59:27 +0300 |
commit | 5e6193f669c2b83031771dd794f81fdebac5e561 (patch) | |
tree | 78d71bc67beba0e41887e49d549e6a0d6ddd548f /.eslintrc.js | |
parent | 5407690bd79a4aa9b5ea72acb98d1a8efd309029 (diff) |
tools: lint for unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 6a8403d3488..0b4c170813d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,7 +17,7 @@ Module._findPath = (request, paths, isMain) => { if (!r && hacks.includes(request)) { try { return require.resolve(`./tools/node_modules/${request}`); - } catch (err) { + } catch { return require.resolve( `./tools/node_modules/eslint/node_modules/${request}`); } @@ -212,7 +212,7 @@ module.exports = { 'no-unsafe-finally': 'error', 'no-unsafe-negation': 'error', 'no-unused-labels': 'error', - 'no-unused-vars': ['error', { args: 'none' }], + 'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }], 'no-use-before-define': ['error', { classes: true, functions: false, |