quick-lint-js

Find bugs in JavaScript programs.

E0349: function parameter cannot be parenthesized

Using parenthesis around the function parameter is invalid.

let g = ((x)) => { };
let f = function ((x)) { };

To fix this error, remove the parenthesis.

let g = (x) => { };
let f = function (x) { };

Documentation for other errors