Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 283 Bytes

prefer-optional-catch-binding.md

File metadata and controls

23 lines (16 loc) · 283 Bytes

Prefer omitting the catch binding parameter

If the catch binding parameter is not used, it should be omitted.

This rule is fixable.

Fail

try {} catch (usedError) {}

Pass

try {} catch {}
try {} catch (error) {
	console.error(error);
}